From 3b1554c77ce9c80b30044654ff2cab3aff7070d4 Mon Sep 17 00:00:00 2001 From: Dianna Hohensee Date: Mon, 10 Jul 2017 14:21:57 -0400 Subject: SERVER-29745 after a successful migration, ensure the metadata update is persisted before range deletion is schedule --- src/mongo/db/s/collection_sharding_state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/s/collection_sharding_state.h') diff --git a/src/mongo/db/s/collection_sharding_state.h b/src/mongo/db/s/collection_sharding_state.h index 033cde19623..979a638599e 100644 --- a/src/mongo/db/s/collection_sharding_state.h +++ b/src/mongo/db/s/collection_sharding_state.h @@ -142,8 +142,8 @@ public: * is added to permit (most) dependent queries on secondaries to complete, too. * * Call result.waitStatus(opCtx) to wait for the deletion to complete or fail. If that succeeds, - * call waitForClean to ensure no other deletions are pending for the range. Call - * result.abandon(), instead, to ignore the outcome. + * waitForClean can be called to ensure no other deletions are pending for the range. Call + * result.abandon(), instead of waitStatus, to ignore the outcome. */ enum CleanWhen { kNow, kDelayed }; auto cleanUpRange(ChunkRange const& range, CleanWhen) -> CleanupNotification; -- cgit v1.2.1