summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
diff options
context:
space:
mode:
authorChibuikem Amaechi <cramaechi@me.com>2017-12-29 21:10:16 -0600
committerIan Whalen <ian.whalen@gmail.com>2018-01-23 16:19:59 -0500
commitc765de210434a6a49fa62c8c0602876fec628bfc (patch)
treeb364351c149c490119a124cdbcd6f242fb88a3cc /src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
parent3660fcbd6f9dfae8c55b4a0853f1684c0e6fd941 (diff)
downloadmongo-c765de210434a6a49fa62c8c0602876fec628bfc.tar.gz
SERVER-32259 Update wiredtiger_util.cpp
WiredTigerUtil::fetchTypeAndSourceURI() is using invariant(colgroupResult.isOK()) instead of invariantOK(colgroupResult.getStatus()). This means that if the invariant ever fires, we don't know what the bad Status actually was. Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
index 0c4dc874e84..d10f03e474a 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
@@ -87,7 +87,7 @@ void WiredTigerUtil::fetchTypeAndSourceURI(OperationContext* opCtx,
invariant(colon != string::npos);
colgroupUri += tableUri.substr(colon);
StatusWith<std::string> colgroupResult = getMetadata(opCtx, colgroupUri);
- invariant(colgroupResult.isOK());
+ invariantOK(colgroupResult.getStatus());
WiredTigerConfigParser parser(colgroupResult.getValue());
WT_CONFIG_ITEM typeItem;