diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-04-26 10:30:18 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-04-26 14:45:54 -0400 |
commit | fa23ce3476904d41f981a677aa4aba55deec4791 (patch) | |
tree | e53a0e8729364474931d1fdf3d56f8466c978ba6 /src/mongo/db/commands/list_databases.cpp | |
parent | 36fabef9e765033af90017a5ebc41e53ef46683e (diff) | |
download | mongo-fa23ce3476904d41f981a677aa4aba55deec4791.tar.gz |
SERVER-39520 Use database IX lock for dropCollection
Diffstat (limited to 'src/mongo/db/commands/list_databases.cpp')
-rw-r--r-- | src/mongo/db/commands/list_databases.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/list_databases.cpp b/src/mongo/db/commands/list_databases.cpp index 46d3ab65fa8..dccec13a8b6 100644 --- a/src/mongo/db/commands/list_databases.cpp +++ b/src/mongo/db/commands/list_databases.cpp @@ -170,7 +170,7 @@ public: b.append("sizeOnDisk", static_cast<double>(size)); b.appendBool("empty", - UUIDCatalog::get(opCtx).getAllCatalogEntriesFromDb(dbname).empty()); + UUIDCatalog::get(opCtx).getAllCollectionUUIDsFromDb(dbname).empty()); } BSONObj curDbObj = b.obj(); |