summaryrefslogtreecommitdiff
path: root/src/include/log.h
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-09-14 07:38:53 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-09-14 07:38:53 +1000
commitfa0b36041b48e461d81dd7c54574e2973d5ac49b (patch)
tree2d271f7dc66956f8588eee7ce3c5a15e421535d9 /src/include/log.h
parent83d29b78ddef6284c453bf1ee862eb54f29d1881 (diff)
downloadmongo-fa0b36041b48e461d81dd7c54574e2973d5ac49b.tar.gz
Treat database-wide checkpoints differently to file syncs. For database-wide checkpoints, we need to log the snapshot so we can work out which log records to apply during recovery.
Diffstat (limited to 'src/include/log.h')
-rw-r--r--src/include/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/log.h b/src/include/log.h
index 5eb42ab7bd5..5e920220bb1 100644
--- a/src/include/log.h
+++ b/src/include/log.h
@@ -181,9 +181,10 @@ struct __wt_log_op_desc {
* Log record declarations: BEGIN
*/
#define WT_LOGREC_INVALID 0
-#define WT_LOGREC_CHECKPOINT 1
-#define WT_LOGREC_COMMIT 2
-#define WT_LOGREC_DEBUG 3
+#define WT_LOGREC_FILE_SYNC 1
+#define WT_LOGREC_CHECKPOINT 2
+#define WT_LOGREC_COMMIT 3
+#define WT_LOGREC_DEBUG 4
#define WT_LOGOP_INVALID 0
#define WT_LOGOP_COL_PUT 1
#define WT_LOGOP_COL_REMOVE 2