summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_filtering_metadata_refresh.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2018-08-27 14:13:00 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2018-08-27 16:21:38 -0400
commite338bbd75f4697a9ec29f097436358282d75c5b3 (patch)
treeae8f31815fbd83782a36c9c09e1abac013139d6f /src/mongo/db/s/shard_filtering_metadata_refresh.h
parent2aede7ad2fce2616e4140f2ae398e4e570c84703 (diff)
downloadmongo-e338bbd75f4697a9ec29f097436358282d75c5b3.tar.gz
SERVER-36755 CollectionLock acquisition in shard_filtering_metadata_refresh.cpp can cause server to terminate on stepdown (2/2)
Diffstat (limited to 'src/mongo/db/s/shard_filtering_metadata_refresh.h')
-rw-r--r--src/mongo/db/s/shard_filtering_metadata_refresh.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/s/shard_filtering_metadata_refresh.h b/src/mongo/db/s/shard_filtering_metadata_refresh.h
index a0397726090..d4823d9d9c6 100644
--- a/src/mongo/db/s/shard_filtering_metadata_refresh.h
+++ b/src/mongo/db/s/shard_filtering_metadata_refresh.h
@@ -75,10 +75,11 @@ ChunkVersion forceShardFilteringMetadataRefresh(OperationContext* opCtx,
* Invalidates the cached database version, schedules a refresh of the database info, waits for the
* refresh to complete, and updates the cached database version.
*/
-void onDbVersionMismatch(OperationContext* opCtx,
- const StringData dbName,
- const DatabaseVersion& clientDbVersion,
- const boost::optional<DatabaseVersion>& serverDbVersion) noexcept;
+Status onDbVersionMismatchNoExcept(
+ OperationContext* opCtx,
+ const StringData dbName,
+ const DatabaseVersion& clientDbVersion,
+ const boost::optional<DatabaseVersion>& serverDbVersion) noexcept;
void forceDatabaseRefresh(OperationContext* opCtx, const StringData dbName);