diff options
Diffstat (limited to 'src/btree/bt_cursor.c')
-rw-r--r-- | src/btree/bt_cursor.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/btree/bt_cursor.c b/src/btree/bt_cursor.c index 8f1d39defb1..d0b5efe29db 100644 --- a/src/btree/bt_cursor.c +++ b/src/btree/bt_cursor.c @@ -283,7 +283,6 @@ retry: WT_RET(__cursor_func_init(cbt, 1)); * maximum possible record number so the search ends on the * last page. The real record number is assigned by the * serialized append operation. - * __wt_col_append_serial_func */ if (F_ISSET(cursor, WT_CURSTD_APPEND)) cbt->iface.recno = UINT64_MAX; @@ -314,9 +313,8 @@ retry: WT_RET(__cursor_func_init(cbt, 1)); * If not overwriting, fail if the key exists, else insert the * key/value pair. */ - if (cbt->compare == 0 && - !__cursor_invalid(cbt) && - !F_ISSET(cursor, WT_CURSTD_OVERWRITE)) + if (!F_ISSET(cursor, WT_CURSTD_OVERWRITE) && + cbt->compare == 0 && !__cursor_invalid(cbt)) WT_ERR(WT_DUPLICATE_KEY); ret = __wt_row_modify(session, cbt, 0); |