Skip to content

Commit e02e840

Browse files
author
Amit Kapila
committed
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
1 parent 25dde58 commit e02e840

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/backend/replication/logical/decode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,10 @@ DecodeCommit(LogicalDecodingContext *ctx, XLogRecordBuffer *buf,
685685
* so during startup, to get to the first transaction the client needs. As
686686
* we have reset the catalog caches before starting to read WAL, and we
687687
* haven't yet touched any catalogs, there can't be anything to invalidate.
688-
* But if we're "forgetting" this commit because it's it happened in
689-
* another database, the invalidations might be important, because they
690-
* could be for shared catalogs and we might have loaded data into the
691-
* relevant syscaches.
688+
* But if we're "forgetting" this commit because it happened in another
689+
* database, the invalidations might be important, because they could be
690+
* for shared catalogs and we might have loaded data into the relevant
691+
* syscaches.
692692
* ---
693693
*/
694694
if (DecodeTXNNeedSkip(ctx, buf, parsed->dbId, origin_id))

src/backend/replication/logical/logical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ stream_commit_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
13711371
ctx->write_xid = txn->xid;
13721372
ctx->write_location = txn->end_lsn;
13731373

1374-
/* in streaming mode, stream_abort_cb is required */
1374+
/* in streaming mode, stream_commit_cb is required */
13751375
if (ctx->callbacks.stream_commit_cb == NULL)
13761376
ereport(ERROR,
13771377
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy