summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/op_observer_sharding_test.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2022-06-21 16:21:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-21 17:53:02 +0000
commitb11292a5e8ee11f3302636f9ba80b33876fbfa94 (patch)
tree9e6b6267dcad44c87eda77c953cccb3cb70b785b /src/mongo/db/s/op_observer_sharding_test.cpp
parent22efe2b8f4f211bbd5b89b42d274e55af181789d (diff)
downloadmongo-b11292a5e8ee11f3302636f9ba80b33876fbfa94.tar.gz
SERVER-67400 Introduce a CollectionPlacement component of the collection version
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_test.cpp')
-rw-r--r--src/mongo/db/s/op_observer_sharding_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_test.cpp b/src/mongo/db/s/op_observer_sharding_test.cpp
index 1ef41426f26..2c4859ba782 100644
--- a/src/mongo/db/s/op_observer_sharding_test.cpp
+++ b/src/mongo/db/s/op_observer_sharding_test.cpp
@@ -27,8 +27,6 @@
* it in the license file.
*/
-#include "mongo/platform/basic.h"
-
#include "mongo/db/catalog_raii.h"
#include "mongo/db/op_observer_util.h"
#include "mongo/db/s/collection_sharding_runtime.h"
@@ -59,8 +57,10 @@ protected:
const UUID uuid = UUID::gen();
const OID epoch = OID::gen();
auto range = ChunkRange(BSON("key" << MINKEY), BSON("key" << MAXKEY));
- auto chunk = ChunkType(
- uuid, std::move(range), ChunkVersion(1, 0, epoch, Timestamp(1, 1)), ShardId("other"));
+ auto chunk = ChunkType(uuid,
+ std::move(range),
+ ChunkVersion({epoch, Timestamp(1, 1)}, {1, 0}),
+ ShardId("other"));
auto rt = RoutingTableHistory::makeNew(kTestNss,
uuid,
KeyPattern(keyPattern),