diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp b/src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp index 4be2c87a008..ad8df37a2b8 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_crud_application_test.cpp @@ -311,7 +311,8 @@ private: RoutingTableHistoryValueHandle makeStandaloneRoutingTableHistory(RoutingTableHistory rt) { const auto version = rt.getVersion(); return RoutingTableHistoryValueHandle( - std::move(rt), ComparableChunkVersion::makeComparableChunkVersion(version)); + std::make_shared<RoutingTableHistory>(std::move(rt)), + ComparableChunkVersion::makeComparableChunkVersion(version)); } const StringData _currentShardKey = "sk"; |