summaryrefslogtreecommitdiff
path: root/src/schema
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-10-20 20:47:24 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-10-20 20:47:24 -0400
commitd653c60ea782f6bfd9de5c48d443c640c0e41724 (patch)
tree73f50d861ad72e18b49de2b269a7fc1e58bb8a71 /src/schema
parent7f62733d13df6cef9d438647d1887922f522e59e (diff)
downloadmongo-d653c60ea782f6bfd9de5c48d443c640c0e41724.tar.gz
WT-2073: review comments, rename __wt_metadata_cursor to
__wt_metadata_cursor_open __wt_metadata_session_cursor to __wt_metadata_cursor.
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/schema_list.c2
-rw-r--r--src/schema/schema_open.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/schema/schema_list.c b/src/schema/schema_list.c
index 9468f1404ea..3c8fd362420 100644
--- a/src/schema/schema_list.c
+++ b/src/schema/schema_list.c
@@ -21,7 +21,7 @@ __schema_add_table(WT_SESSION_IMPL *session,
uint64_t bucket;
/* Make sure the metadata is open before getting other locks. */
- WT_RET(__wt_metadata_session_cursor(session, NULL));
+ WT_RET(__wt_metadata_cursor(session, NULL));
WT_WITH_TABLE_LOCK(session,
ret = __wt_schema_open_table(
diff --git a/src/schema/schema_open.c b/src/schema/schema_open.c
index 37dc45a32e1..f7d89545fa2 100644
--- a/src/schema/schema_open.c
+++ b/src/schema/schema_open.c
@@ -290,7 +290,7 @@ __wt_schema_open_index(WT_SESSION_IMPL *session,
WT_ERR(__wt_buf_fmt(session, tmp, "index:%s:", tablename));
/* Find matching indices. */
- WT_ERR(__wt_metadata_session_cursor(session, &cursor));
+ WT_ERR(__wt_metadata_cursor(session, &cursor));
cursor->set_key(cursor, tmp->data);
if ((ret = cursor->search_near(cursor, &cmp)) == 0 && cmp < 0)
ret = cursor->next(cursor);
@@ -419,7 +419,7 @@ __wt_schema_open_table(WT_SESSION_IMPL *session,
WT_ERR(__wt_buf_fmt(session, buf, "table:%.*s", (int)namelen, name));
WT_ERR(__wt_strndup(session, buf->data, buf->size, &tablename));
- WT_ERR(__wt_metadata_session_cursor(session, &cursor));
+ WT_ERR(__wt_metadata_cursor(session, &cursor));
cursor->set_key(cursor, tablename);
WT_ERR(cursor->search(cursor));
WT_ERR(cursor->get_value(cursor, &tconfig));