summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/uuid_catalog.h
diff options
context:
space:
mode:
authorBen Judd <ben.judd@10gen.com>2018-06-20 15:19:09 -0400
committerBen Judd <ben.judd@10gen.com>2018-06-25 09:12:07 -0400
commit26b3b97ad24d8592e2f93e79f2dc18a8b76d3b3d (patch)
treee89327ad77f2f6448c0d73ff450f768544c83efc /src/mongo/db/catalog/uuid_catalog.h
parent6b917a9b0ee36ef3ec51e73f461693e9677aa1cf (diff)
downloadmongo-26b3b97ad24d8592e2f93e79f2dc18a8b76d3b3d.tar.gz
SERVER-35563 Refactor register/remove UUID to _inlock functions to avoid race conditions
Diffstat (limited to 'src/mongo/db/catalog/uuid_catalog.h')
-rw-r--r--src/mongo/db/catalog/uuid_catalog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/uuid_catalog.h b/src/mongo/db/catalog/uuid_catalog.h
index a96210856fc..cc093b31c06 100644
--- a/src/mongo/db/catalog/uuid_catalog.h
+++ b/src/mongo/db/catalog/uuid_catalog.h
@@ -207,6 +207,8 @@ public:
private:
const std::vector<CollectionUUID>& _getOrdering_inlock(const StringData& db,
const stdx::lock_guard<stdx::mutex>&);
+ void _registerUUIDCatalogEntry_inlock(CollectionUUID uuid, Collection* coll);
+ Collection* _removeUUIDCatalogEntry_inlock(CollectionUUID uuid);
mutable mongo::stdx::mutex _catalogLock;
/**