diff options
Diffstat (limited to 'src/mongo/db/s/config/configsvr_drop_collection_command.cpp')
-rw-r--r-- | src/mongo/db/s/config/configsvr_drop_collection_command.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp index fc74fafc0c5..29b15c82a9e 100644 --- a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp +++ b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp @@ -129,7 +129,9 @@ public: auto collDistLock = uassertStatusOK( catalogClient->getDistLockManager()->lock(opCtx, nss.ns(), "dropCollection", waitFor)); - ON_BLOCK_EXIT([opCtx, nss] { Grid::get(opCtx)->catalogCache()->onEpochChange(nss); }); + ON_BLOCK_EXIT([opCtx, nss] { + Grid::get(opCtx)->catalogCache()->invalidateCollectionEntry_LINEARIZABLE(nss); + }); _dropCollection(opCtx, nss); |