diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-08-24 13:37:36 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-08-24 13:37:36 -0400 |
commit | 1027c6de96d63da81e86b6e6c095fd9a12e3e085 (patch) | |
tree | 88354fc0fdeb496385f80ef6f997a8ac37142d31 /src/btree/col_modify.c | |
parent | 34ab5b65923c08c030b03a71bbaff332e1450194 (diff) | |
download | mongo-1027c6de96d63da81e86b6e6c095fd9a12e3e085.tar.gz |
The cursor's write-generation value is no longer used, it's only set and
then never read. Remove it, along with the __wt_page_write_gen_check()
function.
Diffstat (limited to 'src/btree/col_modify.c')
-rw-r--r-- | src/btree/col_modify.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/btree/col_modify.c b/src/btree/col_modify.c index 64b4d36c01e..efb4949bf51 100644 --- a/src/btree/col_modify.c +++ b/src/btree/col_modify.c @@ -89,7 +89,7 @@ __wt_col_modify(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt, int op) /* Serialize the update. */ WT_ERR(__wt_update_serial(session, page, - cbt->write_gen, &cbt->ins->upd, old_upd, + &cbt->ins->upd, old_upd, &upd, upd_size, &upd_obsolete)); /* Discard any obsolete WT_UPDATE structures. */ @@ -169,14 +169,14 @@ __wt_col_modify(WT_SESSION_IMPL *session, WT_CURSOR_BTREE *cbt, int op) /* Insert or append the WT_INSERT structure. */ if (op == 1) - WT_ERR(__wt_col_append_serial(session, - page, cbt->write_gen, cbt->ins_head, - cbt->ins_stack, cbt->next_stack, + WT_ERR(__wt_col_append_serial( + session, page, + cbt->ins_head, cbt->ins_stack, cbt->next_stack, &ins, ins_size, &cbt->recno, skipdepth)); else - WT_ERR(__wt_insert_serial(session, - page, cbt->write_gen, cbt->ins_head, - cbt->ins_stack, cbt->next_stack, + WT_ERR(__wt_insert_serial( + session, page, + cbt->ins_head, cbt->ins_stack, cbt->next_stack, &ins, ins_size, skipdepth)); } @@ -231,12 +231,11 @@ __wt_col_append_serial_func(WT_SESSION_IMPL *session, void *args) WT_INSERT_HEAD *ins_head; WT_PAGE *page; uint64_t recno, *recnop; - uint32_t write_gen; u_int i, skipdepth; btree = S2BT(session); - __wt_col_append_unpack(args, &page, &write_gen, + __wt_col_append_unpack(args, &page, &ins_head, &ins_stack, &next_stack, &new_ins, &recnop, &skipdepth); /* |