summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/btree/col_modify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/btree/col_modify.c')
-rw-r--r--src/third_party/wiredtiger/src/btree/col_modify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/third_party/wiredtiger/src/btree/col_modify.c b/src/third_party/wiredtiger/src/btree/col_modify.c
index bfd3ecb9f5c..a4a4f8b662d 100644
--- a/src/third_party/wiredtiger/src/btree/col_modify.c
+++ b/src/third_party/wiredtiger/src/btree/col_modify.c
@@ -34,7 +34,7 @@ __wt_col_modify(WT_CURSOR_BTREE *cbt, uint64_t recno, const WT_ITEM *value, WT_U
btree = cbt->btree;
ins = NULL;
page = cbt->ref->page;
- session = (WT_SESSION_IMPL *)cbt->iface.session;
+ session = CUR2S(cbt);
upd = upd_arg;
append = logged = false;
@@ -137,7 +137,7 @@ __wt_col_modify(WT_CURSOR_BTREE *cbt, uint64_t recno, const WT_ITEM *value, WT_U
}
/* Avoid a data copy in WT_CURSOR.update. */
- cbt->modify_update = upd;
+ __wt_upd_value_assign(cbt->modify_update, upd);
/*
* Point the new WT_UPDATE item to the next element in the list. If we get it right, the
@@ -188,7 +188,7 @@ __wt_col_modify(WT_CURSOR_BTREE *cbt, uint64_t recno, const WT_ITEM *value, WT_U
logged = true;
/* Avoid a data copy in WT_CURSOR.update. */
- cbt->modify_update = upd;
+ __wt_upd_value_assign(cbt->modify_update, upd);
} else
upd_size = __wt_update_list_memsize(upd);
ins->upd = upd;