summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache.h
diff options
context:
space:
mode:
authorMartin Neupauer <martin.neupauer@10gen.com>2018-03-06 21:27:26 -0500
committerMartin Neupauer <martin.neupauer@mongodb.com>2018-03-27 13:18:55 -0400
commite6503239af00e7a7a5848ed7784142ac904e4218 (patch)
tree347220712d1e74f9d2ed9f41c6bc87e95eb9232f /src/mongo/s/catalog_cache.h
parent15a1f6446d89fe30c63f1dc23ecc4c477b905168 (diff)
downloadmongo-e6503239af00e7a7a5848ed7784142ac904e4218.tar.gz
SERVER-33453 - Add timestamp support to the ChunkManager
Diffstat (limited to 'src/mongo/s/catalog_cache.h')
-rw-r--r--src/mongo/s/catalog_cache.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/s/catalog_cache.h b/src/mongo/s/catalog_cache.h
index bd857a8b4b8..6e28f3c7167 100644
--- a/src/mongo/s/catalog_cache.h
+++ b/src/mongo/s/catalog_cache.h
@@ -160,7 +160,7 @@ private:
std::shared_ptr<Notification<Status>> refreshCompletionNotification;
// Contains the cached routing information (only available if needsRefresh is false)
- std::shared_ptr<ChunkManager> routingInfo;
+ std::shared_ptr<RoutingTableHistory> routingInfo;
};
/**
@@ -191,10 +191,15 @@ private:
*/
void _scheduleCollectionRefresh(WithLock,
std::shared_ptr<DatabaseInfoEntry> dbEntry,
- std::shared_ptr<ChunkManager> existingRoutingInfo,
+ std::shared_ptr<RoutingTableHistory> existingRoutingInfo,
NamespaceString const& nss,
int refreshAttempt);
+ StatusWith<CachedCollectionRoutingInfo> _getCollectionRoutingInfoAt(
+ OperationContext* opCtx,
+ const NamespaceString& nss,
+ boost::optional<Timestamp> atClusterTime);
+
// Interface from which chunks will be retrieved
CatalogCacheLoader& _cacheLoader;