aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2023-08-25 08:57:55 +0530
committerAmit Kapila <akapila@postgresql.org>2023-08-25 08:57:55 +0530
commit9c13b6814ac7943036c64b377675184b243f04e8 (patch)
tree84e324e26491c21c36fd4e9ddc3e5bcf66d24ec2 /src/backend/parser/parse_utilcmd.c
parent252dcb32397f64a5e1ceac05b29a271ab19aa960 (diff)
downloadpostgresql-9c13b6814ac7943036c64b377675184b243f04e8.tar.gz
postgresql-9c13b6814ac7943036c64b377675184b243f04e8.zip
Reset the logical worker type while cleaning up other worker info.
Commit 2a8b40e36 introduces the worker type field for logical replication workers, but forgot to reset the type when the worker exits. This can lead to recognizing a stopped worker as a valid logical replication worker. Fix it by resetting the worker type and additionally adding the safeguard to not use LogicalRepWorker until ->in_use is verified. Reported-by: Thomas Munro based on cfbot reports. Author: Hou Zhijie, Alvaro Herrera Reviewed-by: Amit Kapila Discussion: http://postgr.es/m/CA+hUKGK2RQh4LifVgBmkHsCYChP-65UwGXOmnCzYVa5aAt4GWg@mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions