Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b81831a

Browse files
committed
Renumber 2PC resource managers so that compared to 9.0, predicate lock rmgr
is added to the end, and existing resource managers keep their old ids. We're not going to guarantee on-disk compatibility for 2PC state files over major releases, but it seems better to avoid changing the ids them anyway. It will help anyone who might want to write external tools to inspect the state files to work with files from different versions, if nothing else. Per complaint from Tom Lane.
1 parent 030a283 commit b81831a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/include/access/twophase_rmgr.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ typedef uint8 TwoPhaseRmgrId;
2323
*/
2424
#define TWOPHASE_RM_END_ID 0
2525
#define TWOPHASE_RM_LOCK_ID 1
26-
#define TWOPHASE_RM_PREDICATELOCK_ID 2
27-
#define TWOPHASE_RM_PGSTAT_ID 3
28-
#define TWOPHASE_RM_MULTIXACT_ID 4
29-
#define TWOPHASE_RM_MAX_ID TWOPHASE_RM_MULTIXACT_ID
26+
#define TWOPHASE_RM_PGSTAT_ID 2
27+
#define TWOPHASE_RM_MULTIXACT_ID 3
28+
#define TWOPHASE_RM_PREDICATELOCK_ID 4
29+
#define TWOPHASE_RM_MAX_ID TWOPHASE_RM_PREDICATELOCK_ID
3030

3131
extern const TwoPhaseCallback twophase_recover_callbacks[];
3232
extern const TwoPhaseCallback twophase_postcommit_callbacks[];

0 commit comments

Comments
 (0)