From 2857d765abe95308b176242d6a9c7442064fd051 Mon Sep 17 00:00:00 2001 From: Robert Guo Date: Wed, 16 Mar 2016 14:15:22 -0400 Subject: SERVER-23183 remove redundant NULL check in WiredTigerIndex::fullValidate --- src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_index.cpp') 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; -- cgit v1.2.1