postgres.git / summary / log / commit / refs

commit    4496226782c47e78b428babbcc16dec4f7329f2b
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Fri Dec 18 17:17:35 2015 +0000
First released in: 9.6.0, 9.5.0

    Fix copy-and-paste error in logical decoding callback.
    
    This could result in the error context misidentifying where the error
    actually occurred.
    
    Craig Ringer


src/backend/replication/logical/logical.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index 1ce90811cc8..2e14a3e0889 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -683,7 +683,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; [parent: 9a51698bae86]