diff options
author | Robert Guo <robert.guo@10gen.com> | 2016-03-16 14:15:22 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2016-03-18 09:32:39 -0400 |
commit | 2857d765abe95308b176242d6a9c7442064fd051 (patch) | |
tree | 3f59ca094ebd07cc0863a428e6cc336ac78a5203 /src | |
parent | 7e8d5536f8a94fc5fd74b3b2027a9d045929117c (diff) | |
download | mongo-2857d765abe95308b176242d6a9c7442064fd051.tar.gz |
SERVER-23183 remove redundant NULL check in WiredTigerIndex::fullValidate
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp index 7fa19a0cbc4..fa778f71551 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp @@ -267,8 +267,7 @@ void WiredTigerIndex::fullValidate(OperationContext* txn, long long* numKeysOut, ValidateResults* fullResults) const { if (fullResults && !WiredTigerRecoveryUnit::get(txn)->getSessionCache()->isEphemeral()) { - int err = - WiredTigerUtil::verifyTable(txn, _uri, fullResults ? &(fullResults->errors) : NULL); + int err = WiredTigerUtil::verifyTable(txn, _uri, &(fullResults->errors)); if (err == EBUSY) { const char* msg = "verify() returned EBUSY. Not treating as invalid."; warning() << msg; |