summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/client/shard_registry.h')
-rw-r--r--src/mongo/s/client/shard_registry.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/s/client/shard_registry.h b/src/mongo/s/client/shard_registry.h
index fa241007731..0bb6196d2c3 100644
--- a/src/mongo/s/client/shard_registry.h
+++ b/src/mongo/s/client/shard_registry.h
@@ -438,9 +438,7 @@ private:
void _initializeCacheIfNecessary() const;
- void _periodicReload(const executor::TaskExecutor::CallbackArgs& cbArgs);
-
- void _reloadInternal(OperationContext* opCtx);
+ SharedSemiFuture<Cache::ValueHandle> _reloadInternal();
/**
* Factory to create shards. Never changed after startup so safe to access outside of _mutex.
@@ -463,7 +461,7 @@ private:
ThreadPool _threadPool;
// Executor for periodically reloading the registry (ie. in which _periodicReload() runs).
- std::unique_ptr<executor::TaskExecutor> _executor{};
+ std::shared_ptr<executor::TaskExecutor> _executor{};
mutable Mutex _cacheMutex = MONGO_MAKE_LATCH("ShardRegistry::_cacheMutex");
std::unique_ptr<Cache> _cache;