aboutsummaryrefslogtreecommitdiff
path: root/src/include/storage/multilev.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/multilev.h')
-rw-r--r--src/include/storage/multilev.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/include/storage/multilev.h b/src/include/storage/multilev.h
index d077455d872..befc6227ae9 100644
--- a/src/include/storage/multilev.h
+++ b/src/include/storage/multilev.h
@@ -1,13 +1,13 @@
/*-------------------------------------------------------------------------
*
* multilev.h--
- * multi level lock table consts/defs for single.c and multi.c and their
- * clients
+ * multi level lock table consts/defs for single.c and multi.c and their
+ * clients
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: multilev.h,v 1.3 1997/08/19 21:39:56 momjian Exp $
+ * $Id: multilev.h,v 1.4 1997/09/07 05:01:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,30 +16,30 @@
#include <storage/lmgr.h>
-#define READ_LOCK 2
-#define WRITE_LOCK 1
+#define READ_LOCK 2
+#define WRITE_LOCK 1
-/* any time a small granularity READ/WRITE lock is set.
+/* any time a small granularity READ/WRITE lock is set.
* Higher granularity READ_INTENT/WRITE_INTENT locks must
* also be set. A read intent lock is has value READ+INTENT.
* in this implementation.
*/
-#define NO_LOCK 0
-#define INTENT 2
-#define READ_INTENT (READ_LOCK+INTENT)
+#define NO_LOCK 0
+#define INTENT 2
+#define READ_INTENT (READ_LOCK+INTENT)
#define WRITE_INTENT (WRITE_LOCK+INTENT)
-#define EXTEND_LOCK 5
+#define EXTEND_LOCK 5
-#define SHORT_TERM 1
-#define LONG_TERM 2
-#define UNLOCK 0
+#define SHORT_TERM 1
+#define LONG_TERM 2
+#define UNLOCK 0
#define N_LEVELS 3
#define RELN_LEVEL 0
#define PAGE_LEVEL 1
#define TUPLE_LEVEL 2
-typedef int LOCK_LEVEL;
+typedef int LOCK_LEVEL;
/* multi.c */
@@ -50,9 +50,9 @@ extern LockTableId ShortTermTableId;
* function prototypes
*/
extern LockTableId InitMultiLevelLockm(void);
-extern bool MultiLockReln(LockInfo linfo, LOCKT lockt);
-extern bool MultiLockTuple(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
-extern bool MultiLockPage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
-extern bool MultiReleaseReln(LockInfo linfo, LOCKT lockt);
+extern bool MultiLockReln(LockInfo linfo, LOCKT lockt);
+extern bool MultiLockTuple(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
+extern bool MultiLockPage(LockInfo linfo, ItemPointer tidPtr, LOCKT lockt);
+extern bool MultiReleaseReln(LockInfo linfo, LOCKT lockt);
-#endif /* MULTILEV_H */
+#endif /* MULTILEV_H */