diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-07-03 13:17:07 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-07-07 08:37:22 -0400 |
commit | 344bf6e257e1427bc594bacac3f5983c2bdeaacf (patch) | |
tree | b51cb071b1f507317c0005e00a7a2717a6b94c0c /src/mongo/s/catalog_cache_loader.h | |
parent | 330c6b140d578cf311c982237690798ed33fa41c (diff) | |
download | mongo-344bf6e257e1427bc594bacac3f5983c2bdeaacf.tar.gz |
SERVER-29745 after a successful migration, ensure the metadata update is persisted before range deletion is schedule
Diffstat (limited to 'src/mongo/s/catalog_cache_loader.h')
-rw-r--r-- | src/mongo/s/catalog_cache_loader.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/catalog_cache_loader.h b/src/mongo/s/catalog_cache_loader.h index 7405d225d5b..3257cb8fbc5 100644 --- a/src/mongo/s/catalog_cache_loader.h +++ b/src/mongo/s/catalog_cache_loader.h @@ -96,6 +96,13 @@ public: const ChunkVersion& version) = 0; /** + * Waits for the persisted collection version to be GTE to 'version', or an epoch change. + */ + virtual Status waitForCollectionVersion(OperationContext* opCtx, + const NamespaceString& nss, + const ChunkVersion& version) = 0; + + /** * Non-blocking call, which requests the chunks changed since the specified version to be * fetched from the persistent metadata store and invokes the callback function with the result. * The callback function must never throw - it is a fatal error to do so. |