summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_metadata_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.cpp')
-rw-r--r--src/mongo/db/s/shard_metadata_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.cpp b/src/mongo/db/s/shard_metadata_util.cpp
index f751808bf21..fe9e22f715b 100644
--- a/src/mongo/db/s/shard_metadata_util.cpp
+++ b/src/mongo/db/s/shard_metadata_util.cpp
@@ -457,7 +457,7 @@ Status dropChunksAndDeleteCollectionsEntry(OperationContext* opCtx, const Namesp
try {
// Mark the collection entry as refreshing to indicate that the persisted metadata is about
// to be dropped
- if (!collectionEntry.getRefreshing()) {
+ if (!collectionEntry.getRefreshing() || !*collectionEntry.getRefreshing()) {
uassertStatusOK(setPersistedRefreshFlags(opCtx, nss));
}