diff options
author | Luis Osta <luis.osta@mongodb.com> | 2021-10-07 20:22:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-07 23:12:09 +0000 |
commit | a8c4b5bbf7b838a639b7133cfcad5a92a65041cc (patch) | |
tree | 883745370571fc0c2c193816c7dac1e44f9a11b6 /src | |
parent | ef08d0dbc99db8c4620512e92bfb3154282eb5d3 (diff) | |
download | mongo-a8c4b5bbf7b838a639b7133cfcad5a92a65041cc.tar.gz |
SERVER-60220 Swap order of logChange and in-memory state update
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_coordinator_service.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp index a2fa8fc94c9..e87e5d2a705 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp @@ -992,11 +992,6 @@ void ReshardingCoordinatorService::ReshardingCoordinator::installCoordinatorDoc( bob.append("namespace", doc.getSourceNss().toString()); bob.append("collectionUUID", doc.getSourceUUID().toString()); bob.append("reshardingUUID", doc.getReshardingUUID().toString()); - ShardingLogging::get(opCtx)->logChange(opCtx, - "resharding.coordinator.transition", - doc.getSourceNss().toString(), - bob.obj(), - ShardingCatalogClient::kMajorityWriteConcern); LOGV2_INFO(5343001, "Transitioned resharding coordinator state", @@ -1007,6 +1002,11 @@ void ReshardingCoordinatorService::ReshardingCoordinator::installCoordinatorDoc( "reshardingUUID"_attr = doc.getReshardingUUID()); _coordinatorDoc = doc; + ShardingLogging::get(opCtx)->logChange(opCtx, + "resharding.coordinator.transition", + doc.getSourceNss().toString(), + bob.obj(), + ShardingCatalogClient::kMajorityWriteConcern); } void markCompleted(const Status& status) { |