Commit 44962267 authored by Robert Haas's avatar Robert Haas

Fix copy-and-paste error in logical decoding callback.

This could result in the error context misidentifying where the error
actually occurred.

Craig Ringer
parent 9a51698b
...@@ -683,7 +683,7 @@ filter_by_origin_cb_wrapper(LogicalDecodingContext *ctx, RepOriginId origin_id) ...@@ -683,7 +683,7 @@ filter_by_origin_cb_wrapper(LogicalDecodingContext *ctx, RepOriginId origin_id)
/* Push callback + info on the error context stack */ /* Push callback + info on the error context stack */
state.ctx = ctx; state.ctx = ctx;
state.callback_name = "shutdown"; state.callback_name = "filter_by_origin";
state.report_location = InvalidXLogRecPtr; state.report_location = InvalidXLogRecPtr;
errcallback.callback = output_plugin_error_callback; errcallback.callback = output_plugin_error_callback;
errcallback.arg = (void *) &state; errcallback.arg = (void *) &state;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment