diff options
author | Geert Bosch <geert@mongodb.com> | 2016-11-08 17:23:37 -0500 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2016-11-09 16:42:53 -0500 |
commit | 25eb217f91c78f79b3b895258da49646cfc33c65 (patch) | |
tree | 4cc4c54acd5b40cd8c20914d45f34eea89e92c6d | |
parent | 5b0e8a153ae5e87ad02536ec4ff7db2a515e4d54 (diff) | |
download | mongo-25eb217f91c78f79b3b895258da49646cfc33c65.tar.gz |
SERVER-26958 Fix potential nullptr dereference in WCE retry loop
-rw-r--r-- | src/mongo/db/catalog/database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp index f6b246395e6..47bfda5ee85 100644 --- a/src/mongo/db/catalog/database.cpp +++ b/src/mongo/db/catalog/database.cpp @@ -654,7 +654,7 @@ void Database::dropDatabase(OperationContext* txn, Database* db) { MONGO_WRITE_CONFLICT_RETRY_LOOP_BEGIN { getGlobalServiceContext()->getGlobalStorageEngine()->dropDatabase(txn, name); } - MONGO_WRITE_CONFLICT_RETRY_LOOP_END(txn, "dropDatabase", db->name()); + MONGO_WRITE_CONFLICT_RETRY_LOOP_END(txn, "dropDatabase", name); } Status userCreateNS(OperationContext* txn, |