diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-06-14 19:38:15 +0000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-06-14 19:38:15 +0000 |
commit | 47e8c3d1d22018eaaa09f91dfd78addb49e0b49b (patch) | |
tree | 2d24fbd1e6c03d438d267b737becc318ca6fbadf /src/lsm/lsm_cursor.c | |
parent | 7aaeaaa054d1ac27a95c79984f7ca69ba739caae (diff) | |
parent | 84429199fd94f8a8201c5aa77432a2557d326902 (diff) | |
download | mongo-47e8c3d1d22018eaaa09f91dfd78addb49e0b49b.tar.gz |
Merge branch 'develop' into mongodb-3.6mongodb-3.5.9
Diffstat (limited to 'src/lsm/lsm_cursor.c')
-rw-r--r-- | src/lsm/lsm_cursor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lsm/lsm_cursor.c b/src/lsm/lsm_cursor.c index 99920367600..1d15ed793a2 100644 --- a/src/lsm/lsm_cursor.c +++ b/src/lsm/lsm_cursor.c @@ -1725,8 +1725,6 @@ __wt_clsm_close(WT_CURSOR *cursor) /* In case we were somehow left positioned, clear that. */ __clsm_leave(clsm); - /* The WT_LSM_TREE owns the URI. */ - cursor->uri = NULL; if (clsm->lsm_tree != NULL) __wt_lsm_tree_release(session, clsm->lsm_tree); WT_TRET(__wt_cursor_close(cursor)); @@ -1810,7 +1808,7 @@ __wt_clsm_open(WT_SESSION_IMPL *session, cursor = &clsm->iface; *cursor = iface; cursor->session = &session->iface; - cursor->uri = lsm_tree->name; + WT_ERR(__wt_strdup(session, lsm_tree->name, &cursor->uri)); cursor->key_format = lsm_tree->key_format; cursor->value_format = lsm_tree->value_format; |