summaryrefslogtreecommitdiff
path: root/src/mongo/db/wire_version.h
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2018-06-21 14:55:01 -0400
committerBlake Oler <blake.oler@mongodb.com>2018-07-02 10:50:53 -0400
commit53a34c4f01d6b18df4c4800df9a72b1eff07fb6a (patch)
tree59dcf1abafee02e14dc8d1d51c43c0965bcaf29d /src/mongo/db/wire_version.h
parentb3a542545c7367f96d57cab5e89dc389748c0e2c (diff)
downloadmongo-53a34c4f01d6b18df4c4800df9a72b1eff07fb6a.tar.gz
SERVER-35655 Update FCV constants throughout server code.
SERVER-35169 Bump wire protocol version for 4.2. SERVER-35752 Ensure tests that rely on FCV pass after updating FCV constants. SERVER-35163 Unblacklist tests that expect FCV version to differ between "last-stable" and "latest." SERVER-34984 Update major_version_upgrade.js to call setFCV to the latest FCV. SERVER-35656 Ensure a 4.0 mongos crashes upon attempting to connect to an FCV 4.2 cluster. SERVER-35404 Re-enable the sharding_last_stable_mongos_and_mixed_shards suite.
Diffstat (limited to 'src/mongo/db/wire_version.h')
-rw-r--r--src/mongo/db/wire_version.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/wire_version.h b/src/mongo/db/wire_version.h
index 13ec8aa58b8..d373c648578 100644
--- a/src/mongo/db/wire_version.h
+++ b/src/mongo/db/wire_version.h
@@ -70,15 +70,15 @@ enum WireVersion {
// Supports the new OP_MSG wireprotocol (3.6+).
SUPPORTS_OP_MSG = 6,
- // Supports replica set transactions (3.8+).
+ // Supports replica set transactions (4.0+).
REPLICA_SET_TRANSACTIONS = 7,
+ // Supports sharded transactions (4.2+).
+ SHARDED_TRANSACTIONS = 8,
+
// Set this to the highest value in this enum - it will be the default maxWireVersion for
// the WireSpec values.
- LATEST_WIRE_VERSION = REPLICA_SET_TRANSACTIONS,
-
- // This is used in testing to masquerade as a future binary version node.
- FUTURE_WIRE_VERSION_FOR_TESTING = 1 << 20,
+ LATEST_WIRE_VERSION = SHARDED_TRANSACTIONS,
};
/**