summaryrefslogtreecommitdiff
path: root/src/include/storage/lockdefs.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-01-03 12:24:44 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-01-03 12:24:44 -0500
commitba2bc4a7bace6db6657b4e550b11137e31e2f8dc (patch)
tree7f46b1cb66b5431c8d8c52b7356b2c16c1fd3fbd /src/include/storage/lockdefs.h
parent9623d8999603dff84e7cb85caca2af82c5f67c8b (diff)
Use MaxLockMode symbol in more places.
As long as we have this macro, it makes sense to use it in the LockMethodData structures. Julien Rouhaud Discussion: https://postgr.es/m/20220103064722.ewdv4evlez5m7mdn@jrouhaud
Diffstat (limited to 'src/include/storage/lockdefs.h')
-rw-r--r--src/include/storage/lockdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/lockdefs.h b/src/include/storage/lockdefs.h
index f99ad0eff60..c412ecf1ec8 100644
--- a/src/include/storage/lockdefs.h
+++ b/src/include/storage/lockdefs.h
@@ -45,7 +45,7 @@ typedef int LOCKMODE;
#define AccessExclusiveLock 8 /* ALTER TABLE, DROP TABLE, VACUUM FULL,
* and unqualified LOCK TABLE */
-#define MaxLockMode 8
+#define MaxLockMode 8 /* highest standard lock mode */
/* WAL representation of an AccessExclusiveLock on a table */