Fix ABI break introduced by commit 4daa140a2f.
authorAmit Kapila <[email protected]>
Thu, 24 Jun 2021 09:23:50 +0000 (14:53 +0530)
committerAmit Kapila <[email protected]>
Thu, 24 Jun 2021 09:55:13 +0000 (15:25 +0530)
Move the newly defined enum value REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT
at the end to avoid ABI break in the back branches. We need to back-patch
this till v11 because before that it is already at the end.

Reported-by: Tomas Vondra
Backpatch-through: 11
Discussion: https://postgr.es/m/CAExHW5sPKF-Oovx_qZe4p5oM6Dvof7_P+XgsNAViug15Fm99jA@mail.gmail.com

src/include/replication/reorderbuffer.h

index 1ced41ffbe6ac6295f47deca016b2f1b11f21d16..bc97b08a901c3d20ff8da01324d3b5c7d5d514d7 100644 (file)
@@ -60,8 +60,8 @@ enum ReorderBufferChangeType
    REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID,
    REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT,
    REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM,
-   REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT,
-   REORDER_BUFFER_CHANGE_TRUNCATE
+   REORDER_BUFFER_CHANGE_TRUNCATE,
+   REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT
 };
 
 /*