diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-01-06 08:56:19 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-01-06 08:56:19 +0530 |
commit | e02e840ff7787d4798fca9f6a5b8b3657f45cf0c (patch) | |
tree | ed6c7dcdca8191479e85407e7d2fd2be16b0b6ce /src | |
parent | 25dde5835772a58356383bf1112c6c2a1a37df0e (diff) | |
download | postgresql-e02e840ff7787d4798fca9f6a5b8b3657f45cf0c.tar.gz postgresql-e02e840ff7787d4798fca9f6a5b8b3657f45cf0c.zip |
Fix typos in decode.c and logical.c.
Per report by Ajin Cherian in email:
https://postgr.es/m/CAFPTHDYnRKDvzgDxoMn_CKqXA-D0MtrbyJvfvjBsO4G=UHDXkg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/logical/decode.c | 8 | ||||
-rw-r--r-- | src/backend/replication/logical/logical.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 23ab3cf6052..afa1df00d0e 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -685,10 +685,10 @@ DecodeCommit(LogicalDecodingContext *ctx, XLogRecordBuffer *buf, * so during startup, to get to the first transaction the client needs. As * we have reset the catalog caches before starting to read WAL, and we * haven't yet touched any catalogs, there can't be anything to invalidate. - * But if we're "forgetting" this commit because it's it happened in - * another database, the invalidations might be important, because they - * could be for shared catalogs and we might have loaded data into the - * relevant syscaches. + * But if we're "forgetting" this commit because it happened in another + * database, the invalidations might be important, because they could be + * for shared catalogs and we might have loaded data into the relevant + * syscaches. * --- */ if (DecodeTXNNeedSkip(ctx, buf, parsed->dbId, origin_id)) diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index 605ec0986ca..0977aec711c 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -1371,7 +1371,7 @@ stream_commit_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; ctx->write_location = txn->end_lsn; - /* in streaming mode, stream_abort_cb is required */ + /* in streaming mode, stream_commit_cb is required */ if (ctx->callbacks.stream_commit_cb == NULL) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |