summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/txn/txn_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/txn/txn_log.c')
-rw-r--r--src/third_party/wiredtiger/src/txn/txn_log.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/third_party/wiredtiger/src/txn/txn_log.c b/src/third_party/wiredtiger/src/txn/txn_log.c
index bd1b2239e2d..a52e97d6b44 100644
--- a/src/third_party/wiredtiger/src/txn/txn_log.c
+++ b/src/third_party/wiredtiger/src/txn/txn_log.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2014-2017 MongoDB, Inc.
+ * Copyright (c) 2014-2018 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
@@ -85,11 +85,7 @@ __txn_op_log(WT_SESSION_IMPL *session,
__txn_op_log_row_key_check(session, cbt);
#endif
switch (upd->type) {
- case WT_UPDATE_DELETED:
- WT_RET(__wt_logop_row_remove_pack(
- session, logrec, op->fileid, &cursor->key));
- break;
- case WT_UPDATE_MODIFIED:
+ case WT_UPDATE_MODIFY:
WT_RET(__wt_logop_row_modify_pack(
session, logrec, op->fileid, &cursor->key, &value));
break;
@@ -97,6 +93,10 @@ __txn_op_log(WT_SESSION_IMPL *session,
WT_RET(__wt_logop_row_put_pack(
session, logrec, op->fileid, &cursor->key, &value));
break;
+ case WT_UPDATE_TOMBSTONE:
+ WT_RET(__wt_logop_row_remove_pack(
+ session, logrec, op->fileid, &cursor->key));
+ break;
WT_ILLEGAL_VALUE(session);
}
} else {
@@ -104,11 +104,7 @@ __txn_op_log(WT_SESSION_IMPL *session,
WT_ASSERT(session, recno != WT_RECNO_OOB);
switch (upd->type) {
- case WT_UPDATE_DELETED:
- WT_RET(__wt_logop_col_remove_pack(
- session, logrec, op->fileid, recno));
- break;
- case WT_UPDATE_MODIFIED:
+ case WT_UPDATE_MODIFY:
WT_RET(__wt_logop_col_modify_pack(
session, logrec, op->fileid, recno, &value));
break;
@@ -116,6 +112,10 @@ __txn_op_log(WT_SESSION_IMPL *session,
WT_RET(__wt_logop_col_put_pack(
session, logrec, op->fileid, recno, &value));
break;
+ case WT_UPDATE_TOMBSTONE:
+ WT_RET(__wt_logop_col_remove_pack(
+ session, logrec, op->fileid, recno));
+ break;
WT_ILLEGAL_VALUE(session);
}
}