diff options
author | Benety Goh <benety@mongodb.com> | 2017-08-18 13:57:06 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-08-22 13:28:03 -0400 |
commit | b1a36aaa34f48df1573d76439419552282f18cbf (patch) | |
tree | 6f9237341bf1f0ee86cadfc6c7c21a9bb96f8f6b /src/mongo/db/repl | |
parent | 993f30454af95b3d9c1a377b96d258849ac0fa46 (diff) | |
download | mongo-b1a36aaa34f48df1573d76439419552282f18cbf.tar.gz |
SERVER-30212 UUIDCatalog::onRenameCollection() defers registering UUID until WUOW is committed
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp index d6c66ad51d9..a2dca57abdd 100644 --- a/src/mongo/db/repl/storage_interface_impl.cpp +++ b/src/mongo/db/repl/storage_interface_impl.cpp @@ -448,7 +448,8 @@ Status StorageInterfaceImpl::renameCollection(OperationContext* opCtx, auto newColl = autoDB.getDb()->getCollection(opCtx, toNS); if (newColl->uuid()) { - UUIDCatalog::get(opCtx).onRenameCollection(opCtx, newColl, newColl->uuid().get()); + UUIDCatalog::get(opCtx).onRenameCollection( + opCtx, [newColl] { return newColl; }, newColl->uuid().get()); } wunit.commit(); return status; |