summaryrefslogtreecommitdiff
path: root/bdb/lock/lock_conflict.c
diff options
context:
space:
mode:
Diffstat (limited to 'bdb/lock/lock_conflict.c')
-rw-r--r--bdb/lock/lock_conflict.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/bdb/lock/lock_conflict.c b/bdb/lock/lock_conflict.c
new file mode 100644
index 00000000000..2d7945fe201
--- /dev/null
+++ b/bdb/lock/lock_conflict.c
@@ -0,0 +1,34 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1996, 1997, 1998, 1999, 2000
+ * Sleepycat Software. All rights reserved.
+ */
+
+#include "db_config.h"
+
+#ifndef lint
+static const char revid[] = "$Id: lock_conflict.c,v 11.6 2000/12/12 17:38:13 bostic Exp $";
+#endif /* not lint */
+
+#ifndef NO_SYSTEM_INCLUDES
+#include <sys/types.h>
+#endif
+
+#include "db_int.h"
+
+/*
+ * The conflict arrays are set up such that the row is the lock you
+ * are holding and the column is the lock that is desired.
+ */
+
+const u_int8_t db_riw_conflicts[] = {
+ /* N S X WT IX IS SIX */
+ /* N */ 0, 0, 0, 0, 0, 0, 0,
+ /* S */ 0, 0, 1, 0, 1, 0, 1,
+ /* X */ 0, 1, 1, 1, 1, 1, 1,
+ /* WT */ 0, 0, 0, 0, 0, 0, 0,
+ /* IX */ 0, 1, 1, 0, 0, 0, 0,
+ /* IS */ 0, 0, 1, 0, 0, 0, 0,
+ /* SIX */ 0, 1, 1, 0, 0, 0, 0
+};