This is an automated email from the ASF dual-hosted git repository. maxyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 2454910a53a4cc33c252335d93cde382ca0a5a33 Author: Paul Guo <[email protected]> AuthorDate: Thu Jan 7 09:03:57 2021 +0800 Add argument --next-gxid in pg_resetwal to support next-gxid reset. Reviewed-by: Gang Xiong <[email protected]> --- src/bin/pg_resetwal/pg_resetwal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index fb91d269e4b..7b660a75e49 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -564,6 +564,9 @@ main(int argc, char *argv[]) FullTransactionIdFromEpochAndXid(EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid), set_xid); + if (set_gxid != 0) + ControlFile.checkPointCopy.nextGxid = set_gxid; + if (set_oldest_commit_ts_xid != 0) ControlFile.checkPointCopy.oldestCommitTsXid = set_oldest_commit_ts_xid; if (set_newest_commit_ts_xid != 0) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
