summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog_cache_loader.h')
-rw-r--r--src/mongo/s/catalog_cache_loader.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/s/catalog_cache_loader.h b/src/mongo/s/catalog_cache_loader.h
index 94d8ea5a93e..ef292552df1 100644
--- a/src/mongo/s/catalog_cache_loader.h
+++ b/src/mongo/s/catalog_cache_loader.h
@@ -68,7 +68,6 @@ public:
static CatalogCacheLoader& get(ServiceContext* serviceContext);
static CatalogCacheLoader& get(OperationContext* opCtx);
-
/**
* Used as a return value for getChunksSince.
*/
@@ -93,6 +92,9 @@ public:
std::vector<ChunkType> changedChunks;
};
+ using GetChunksSinceCallbackFn =
+ stdx::function<void(OperationContext*, StatusWith<CollectionAndChangedChunks>)>;
+
/**
* Initializes internal state. Must be called only once when sharding state is initialized.
*/
@@ -126,10 +128,7 @@ public:
* Notification object can be waited on in order to ensure that.
*/
virtual std::shared_ptr<Notification<void>> getChunksSince(
- const NamespaceString& nss,
- ChunkVersion version,
- stdx::function<void(OperationContext*, StatusWith<CollectionAndChangedChunks>)>
- callbackFn) = 0;
+ const NamespaceString& nss, ChunkVersion version, GetChunksSinceCallbackFn callbackFn) = 0;
/**
* Non-blocking call, which requests the most recent db version for the given dbName from the