summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-03-16 10:07:04 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-03-16 10:07:04 -0400
commitbb7bd4c719f7fae1cdece402251653d8d8576aab (patch)
treeb6f5ccc65e6807293d50327ce2933ecc2efbca9e
parent6a73f3acd7a02b26cfec002509c7c82e9b289e49 (diff)
downloadmongo-bb7bd4c719f7fae1cdece402251653d8d8576aab.tar.gz
WT-2490: search_near() returns wrong key for column-store
Lint: Last value assigned to variable 'firstcg_cur' not used in one code path.
-rw-r--r--src/cursor/cur_join.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cursor/cur_join.c b/src/cursor/cur_join.c
index 8f69f748f9d..dfdbe1ae2ff 100644
--- a/src/cursor/cur_join.c
+++ b/src/cursor/cur_join.c
@@ -111,7 +111,6 @@ __curjoin_copy_primary_key(WT_SESSION_IMPL *session, WT_CURSOR_JOIN *cjoin,
if (isindex) {
cindex = ((WT_CURSOR_INDEX *)fromcur);
- firstcg_cur = cindex->cg_cursors[0];
/*
* Repack tells us where the index key ends; advance past
* that to get where the raw primary key starts.