Move SizeOfHeapNewCid next to xl_heap_new_cid struct.
authorHeikki Linnakangas
Tue, 1 Apr 2014 13:23:16 +0000 (16:23 +0300)
committerHeikki Linnakangas
Tue, 1 Apr 2014 13:23:16 +0000 (16:23 +0300)
They belong together, but the xl_heap_rewrite_mapping struct was wedged
in between.

src/include/access/heapam_xlog.h

index d6bc8f7f24f339846f8363d64c7617d84f6b3aa6..4d8cdf0f1767973bc5a6e149498beeffdc1263b3 100644 (file)
@@ -349,6 +349,8 @@ typedef struct xl_heap_new_cid
    xl_heaptid target;
 } xl_heap_new_cid;
 
+#define SizeOfHeapNewCid (offsetof(xl_heap_new_cid, target) + SizeOfHeapTid)
+
 /* logical rewrite xlog record header */
 typedef struct xl_heap_rewrite_mapping
 {
@@ -360,8 +362,6 @@ typedef struct xl_heap_rewrite_mapping
    XLogRecPtr          start_lsn;  /* Insert LSN at begin of rewrite */
 } xl_heap_rewrite_mapping;
 
-#define SizeOfHeapNewCid (offsetof(xl_heap_new_cid, target) + SizeOfHeapTid)
-
 extern void HeapTupleHeaderAdvanceLatestRemovedXid(HeapTupleHeader tuple,
                                       TransactionId *latestRemovedXid);