summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_version.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-04 13:35:26 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-03-09 14:05:05 -0500
commit6c0d7a6635d93d3f82cf027d45a34a48c428234a (patch)
tree6297cd7be67d074c61eba1c4a79bd31eec94ba53 /src/mongo/s/chunk_version.h
parent21e64e9b68de016f29b29eb4dbaf692f3fdf52cd (diff)
downloadmongo-6c0d7a6635d93d3f82cf027d45a34a48c428234a.tar.gz
SERVER-22359 Rename OperationShardVersion to OperationShardingState
This name is more appropriate now, because we will be attaching more metadata to it such as the critical section wait handle, which is necessary for parallel migrations.
Diffstat (limited to 'src/mongo/s/chunk_version.h')
-rw-r--r--src/mongo/s/chunk_version.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/chunk_version.h b/src/mongo/s/chunk_version.h
index cdc266fd613..669ee812c44 100644
--- a/src/mongo/s/chunk_version.h
+++ b/src/mongo/s/chunk_version.h
@@ -51,6 +51,12 @@ class StatusWith;
*/
struct ChunkVersion {
public:
+ /**
+ * The name for the shard version information field, which shard-aware commands should include
+ * if they want to convey shard version.
+ */
+ static const char kShardVersionField[];
+
ChunkVersion() : _combined(0), _epoch(OID()) {}
ChunkVersion(int major, int minor, const OID& epoch)