summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-01-31 17:27:42 -0500
committerLouis Williams <louis.williams@mongodb.com>2018-02-26 10:43:48 -0500
commit17ae3d8ac9a6aa8d3664cebe791692781f3f9ca4 (patch)
tree0f24931b3deace7cdba0264fb8ec7a272c5b42df
parent87f1ccd840f55653023a4c849175061d33a444a6 (diff)
downloadmongo-17ae3d8ac9a6aa8d3664cebe791692781f3f9ca4.tar.gz
SERVER-32823 Use WT metadata create URI for metadata cursors
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
index 016ba8a7a61..6aa40aad041 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
@@ -549,7 +549,7 @@ void WiredTigerKVEngine::cleanShutdown() {
WT_CURSOR* tableCursor;
invariantWTOK(
- session->open_cursor(session, "metadata:", nullptr, nullptr, &tableCursor));
+ session->open_cursor(session, "metadata:create", nullptr, nullptr, &tableCursor));
while (tableCursor->next(tableCursor) == 0) {
const char* raw;
tableCursor->get_key(tableCursor, &raw);
@@ -941,7 +941,7 @@ bool WiredTigerKVEngine::hasIdent(OperationContext* opCtx, StringData ident) con
bool WiredTigerKVEngine::_hasUri(WT_SESSION* session, const std::string& uri) const {
// can't use WiredTigerCursor since this is called from constructor.
WT_CURSOR* c = NULL;
- int ret = session->open_cursor(session, "metadata:", NULL, NULL, &c);
+ int ret = session->open_cursor(session, "metadata:create", NULL, NULL, &c);
if (ret == ENOENT)
return false;
invariantWTOK(ret);
@@ -954,7 +954,7 @@ bool WiredTigerKVEngine::_hasUri(WT_SESSION* session, const std::string& uri) co
std::vector<std::string> WiredTigerKVEngine::getAllIdents(OperationContext* opCtx) const {
std::vector<std::string> all;
int ret;
- WiredTigerCursor cursor("metadata:", WiredTigerSession::kMetadataTableId, false, opCtx);
+ WiredTigerCursor cursor("metadata:create", WiredTigerSession::kMetadataTableId, false, opCtx);
WT_CURSOR* c = cursor.get();
if (!c)
return all;