diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-07-28 10:31:24 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-07-28 10:31:24 +0900 |
commit | 7b7fbe1e8bb4b2a244d1faa618789db411316e55 (patch) | |
tree | 956b06a175b92d5b3486129773a5bf0dcbda48f2 /src | |
parent | b0483263dda0824cc49e3f8a022dab07e1cdf9a7 (diff) | |
download | postgresql-7b7fbe1e8bb4b2a244d1faa618789db411316e55.tar.gz postgresql-7b7fbe1e8bb4b2a244d1faa618789db411316e55.zip |
Clarify some comments making use of leetspeak term "up2date"
Most of these are new, as of a8fd13c, and "up-to-date" is much easier to
parse for the average reader.
Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PtHbHvgOjs_R9LyDF21j-Wn8SxoTtWMQNP2ifXN6t2cSg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/jit/llvm/llvmjit_expr.c | 2 | ||||
-rw-r--r-- | src/backend/replication/logical/logical.c | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/jit/llvm/llvmjit_expr.c b/src/backend/jit/llvm/llvmjit_expr.c index 8a4075bdaf2..6d1181225e8 100644 --- a/src/backend/jit/llvm/llvmjit_expr.c +++ b/src/backend/jit/llvm/llvmjit_expr.c @@ -2386,7 +2386,7 @@ llvm_compile_expr(ExprState *state) * Run compiled expression. * * This will only be called the first time a JITed expression is called. We - * first make sure the expression is still up2date, and then get a pointer to + * first make sure the expression is still up-to-date, and then get a pointer to * the emitted function. The latter can be the first thing that triggers * optimizing and emitting all the generated functions. */ diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c index d61ef4cfada..8dcb564af8f 100644 --- a/src/backend/replication/logical/logical.c +++ b/src/backend/replication/logical/logical.c @@ -1048,7 +1048,7 @@ change_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this change's lsn so replies from clients can give an up2date + * Report this change's lsn so replies from clients can give an up-to-date * answer. This won't ever be enough (and shouldn't be!) to confirm * receipt of this transaction, but it might allow another transaction's * commit to be confirmed with one message. @@ -1088,7 +1088,7 @@ truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this change's lsn so replies from clients can give an up2date + * Report this change's lsn so replies from clients can give an up-to-date * answer. This won't ever be enough (and shouldn't be!) to confirm * receipt of this transaction, but it might allow another transaction's * commit to be confirmed with one message. @@ -1225,10 +1225,10 @@ stream_start_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this message's lsn so replies from clients can give an up2date - * answer. This won't ever be enough (and shouldn't be!) to confirm - * receipt of this transaction, but it might allow another transaction's - * commit to be confirmed with one message. + * Report this message's lsn so replies from clients can give an + * up-to-date answer. This won't ever be enough (and shouldn't be!) to + * confirm receipt of this transaction, but it might allow another + * transaction's commit to be confirmed with one message. */ ctx->write_location = first_lsn; @@ -1272,10 +1272,10 @@ stream_stop_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this message's lsn so replies from clients can give an up2date - * answer. This won't ever be enough (and shouldn't be!) to confirm - * receipt of this transaction, but it might allow another transaction's - * commit to be confirmed with one message. + * Report this message's lsn so replies from clients can give an + * up-to-date answer. This won't ever be enough (and shouldn't be!) to + * confirm receipt of this transaction, but it might allow another + * transaction's commit to be confirmed with one message. */ ctx->write_location = last_lsn; @@ -1443,7 +1443,7 @@ stream_change_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this change's lsn so replies from clients can give an up2date + * Report this change's lsn so replies from clients can give an up-to-date * answer. This won't ever be enough (and shouldn't be!) to confirm * receipt of this transaction, but it might allow another transaction's * commit to be confirmed with one message. @@ -1535,7 +1535,7 @@ stream_truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, ctx->write_xid = txn->xid; /* - * report this change's lsn so replies from clients can give an up2date + * Report this change's lsn so replies from clients can give an up-to-date * answer. This won't ever be enough (and shouldn't be!) to confirm * receipt of this transaction, but it might allow another transaction's * commit to be confirmed with one message. |