summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-01-09 20:51:25 +0000
committerTomas Vondra2017-01-09 20:51:25 +0000
commitde96aa9b0a5bc3e49921c0b928e94cdcdd516013 (patch)
tree2e976dcf1bb163932229416134ca5f5db2728b5f
parent6d3447b13968d9ab5785cb0f5721dac2c4e41604 (diff)
fix order of LWLock tranches (LWTRANCHE_FIRST_USER_DEFINED last)
Clearly LWTRANCHE_FIRST_USER_DEFINED is a special name, meant to be the last one in the array of IDs. Asserts in RegisterLWLockTranches rely on this, for example.
-rw-r--r--src/include/storage/lwlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h
index 42a5bf7c26..a8dfbf2ee6 100644
--- a/src/include/storage/lwlock.h
+++ b/src/include/storage/lwlock.h
@@ -235,8 +235,8 @@ typedef enum BuiltinTrancheIds
LWTRANCHE_BUFFER_MAPPING,
LWTRANCHE_LOCK_MANAGER,
LWTRANCHE_PREDICATE_LOCK_MANAGER,
- LWTRANCHE_FIRST_USER_DEFINED,
- LWTRANCHE_SHARED_QUEUES
+ LWTRANCHE_SHARED_QUEUES,
+ LWTRANCHE_FIRST_USER_DEFINED
} BuiltinTrancheIds;
/*