diff options
Diffstat (limited to 'src/mongo/s/config_server_catalog_cache_loader.h')
-rw-r--r-- | src/mongo/s/config_server_catalog_cache_loader.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mongo/s/config_server_catalog_cache_loader.h b/src/mongo/s/config_server_catalog_cache_loader.h index d16ae428b7f..8c1384946f8 100644 --- a/src/mongo/s/config_server_catalog_cache_loader.h +++ b/src/mongo/s/config_server_catalog_cache_loader.h @@ -55,9 +55,23 @@ public: ChunkVersion version) override; SemiFuture<DatabaseType> getDatabase(StringData dbName) override; + /** + * Don't use outside of unit_tests. + * TODO SERVER-54394 Remove this + */ + void setAvoidSnapshotForRefresh_ForTest(); + private: // Thread pool to be used to perform metadata load std::shared_ptr<ThreadPool> _executor; + + /* + * If 'true' avoids using snapshot read concern when refreshing the cache. Only to be used by + * unit_tests that use the ephemeralForTesting storage engine, because currently it doesn't + * support snapshot read concern. + * TODO SERVER-54394 Remove this. + */ + bool _avoidSnapshotForRefresh = false; }; } // namespace mongo |