summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_recipient_service.h
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2021-01-14 19:20:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-28 21:13:12 +0000
commit3d60f67f2086e93403bada5c0ced25b4bad62782 (patch)
treea072cbaee8320be7a202f660daabcdfe95c45d01 /src/mongo/db/s/resharding/resharding_recipient_service.h
parentf83d7ef13e0418bec77b7bad012ddd89710f0d8c (diff)
downloadmongo-3d60f67f2086e93403bada5c0ced25b4bad62782.tar.gz
SERVER-50584 Serialize resharding errors into a new abortReason field
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_recipient_service.h')
-rw-r--r--src/mongo/db/s/resharding/resharding_recipient_service.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/s/resharding/resharding_recipient_service.h b/src/mongo/db/s/resharding/resharding_recipient_service.h
index 8408742e94d..0967b4bf930 100644
--- a/src/mongo/db/s/resharding/resharding_recipient_service.h
+++ b/src/mongo/db/s/resharding/resharding_recipient_service.h
@@ -142,12 +142,11 @@ private:
// Transitions the state on-disk and in-memory to 'endState'.
void _transitionState(RecipientStateEnum endState,
- boost::optional<Timestamp> fetchTimestamp = boost::none);
+ boost::optional<Timestamp> fetchTimestamp = boost::none,
+ boost::optional<Status> abortReason = boost::none);
- void _transitionStateAndUpdateCoordinator(RecipientStateEnum endState);
-
- // Transitions the state on-disk and in-memory to kError.
- void _transitionStateToError(const Status& status);
+ void _transitionStateAndUpdateCoordinator(RecipientStateEnum endState,
+ boost::optional<Status> abortReason = boost::none);
// Inserts 'doc' on-disk and sets '_replacementDoc' in-memory.
void _insertRecipientDocument(const ReshardingRecipientDocument& doc);