Remove leftover dead code from commit_ts.h.
authorFujii Masao <[email protected]>
Thu, 3 Jul 2025 14:39:45 +0000 (23:39 +0900)
committerFujii Masao <[email protected]>
Thu, 3 Jul 2025 14:39:45 +0000 (23:39 +0900)
Commit 08aa89b3262 removed the COMMIT_TS_SETTS WAL record,
leaving xl_commit_ts_set and SizeOfCommitTsSet unused. However,
it missed removing these definitions. This commit cleans up
the leftover code.

Since this is a cleanup rather than a bug fix, it is applied only to
the master branch.

Author: Andy Fan <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: https://postgr.es/m/[email protected]

src/include/access/commit_ts.h

index b8294e41b978eefb5fa1155d729943592b9bf68f..dc39e7dd32cefe062dfd319b8ce8809d09585d5f 100644 (file)
@@ -46,17 +46,6 @@ extern int   committssyncfiletag(const FileTag *ftag, char *path);
 #define COMMIT_TS_ZEROPAGE     0x00
 #define COMMIT_TS_TRUNCATE     0x10
 
-typedef struct xl_commit_ts_set
-{
-   TimestampTz timestamp;
-   RepOriginId nodeid;
-   TransactionId mainxid;
-   /* subxact Xids follow */
-}          xl_commit_ts_set;
-
-#define SizeOfCommitTsSet  (offsetof(xl_commit_ts_set, mainxid) + \
-                            sizeof(TransactionId))
-
 typedef struct xl_commit_ts_truncate
 {
    int64       pageno;