Fix copy-and-paste error in logical decoding callback.
authorRobert Haas
Fri, 18 Dec 2015 17:17:35 +0000 (12:17 -0500)
committerRobert Haas
Fri, 18 Dec 2015 17:22:24 +0000 (12:22 -0500)
This could result in the error context misidentifying where the error
actually occurred.

Craig Ringer

src/backend/replication/logical/logical.c

index ee7d3268f02830fbb921d759be80dae05557b985..24e5960e29f0896501585f15e5ae81a7bd179524 100644 (file)
@@ -728,7 +728,7 @@ filter_by_origin_cb_wrapper(LogicalDecodingContext *ctx, RepOriginId origin_id)
 
    /* Push callback + info on the error context stack */
    state.ctx = ctx;
-   state.callback_name = "shutdown";
+   state.callback_name = "filter_by_origin";
    state.report_location = InvalidXLogRecPtr;
    errcallback.callback = output_plugin_error_callback;
    errcallback.arg = (void *) &state;