diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_donor_service.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_donor_service.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_donor_service.cpp b/src/mongo/db/s/resharding/resharding_donor_service.cpp index 52c39655925..99b6a0af97d 100644 --- a/src/mongo/db/s/resharding/resharding_donor_service.cpp +++ b/src/mongo/db/s/resharding/resharding_donor_service.cpp @@ -151,13 +151,23 @@ public: const BSONObj& query, const BSONObj& update) override { auto catalogClient = Grid::get(opCtx)->catalogClient(); - uassertStatusOK(catalogClient->updateConfigDocument( + auto docWasModified = uassertStatusOK(catalogClient->updateConfigDocument( opCtx, NamespaceString::kConfigReshardingOperationsNamespace, query, update, false, /* upsert */ ShardingCatalogClient::kMajorityWriteConcern)); + + if (!docWasModified) { + LOGV2_DEBUG( + 5543400, + 1, + "Resharding coordinator document was not modified by the donor's update; this is " + "expected when the update had previously been interrupted due to a stepdown", + "query"_attr = query, + "update"_attr = update); + } } }; |