summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/operation_sharding_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/operation_sharding_state.h')
-rw-r--r--src/mongo/db/s/operation_sharding_state.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/operation_sharding_state.h b/src/mongo/db/s/operation_sharding_state.h
index d83822d5696..aa03834da6a 100644
--- a/src/mongo/db/s/operation_sharding_state.h
+++ b/src/mongo/db/s/operation_sharding_state.h
@@ -93,6 +93,11 @@ public:
void setShardVersion(NamespaceString nss, ChunkVersion newVersion);
/**
+ * Undoes setting the shard version for the given namespace. Needed for views.
+ */
+ void unsetShardVersion(NamespaceString nss);
+
+ /**
* This call is a no op if there isn't a currently active migration critical section. Otherwise
* it will wait for the critical section to complete up to the remaining operation time.
*