diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-03-24 13:03:27 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-24 22:43:35 +0000 |
commit | 5e3e6c4fd4516cbdbc127f392dc96ec7a791e8c5 (patch) | |
tree | f666950579c05e9529bfff0dd720a18a536015b0 /src/mongo/db/error_labels.cpp | |
parent | d6dfe6f2d2c56b8f3ff63f8c0886caebbeaac0c5 (diff) | |
download | mongo-5e3e6c4fd4516cbdbc127f392dc96ec7a791e8c5.tar.gz |
SERVER-47085: Remove ElectionInProgress (216) from ResumableChangeStreamError
Diffstat (limited to 'src/mongo/db/error_labels.cpp')
-rw-r--r-- | src/mongo/db/error_labels.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/error_labels.cpp b/src/mongo/db/error_labels.cpp index cdba768d2c0..2055ad6ef94 100644 --- a/src/mongo/db/error_labels.cpp +++ b/src/mongo/db/error_labels.cpp @@ -81,8 +81,7 @@ bool ErrorLabelBuilder::isResumableChangeStreamError() const { (_commandName == "aggregate" || _commandName == "getMore") && _code && !_wcCode && (ErrorCodes::isRetriableError(*_code) || ErrorCodes::isNetworkError(*_code) || ErrorCodes::isNeedRetargettingError(*_code) || _code == ErrorCodes::RetryChangeStream || - _code == ErrorCodes::FailedToSatisfyReadPreference || - _code == ErrorCodes::ElectionInProgress); + _code == ErrorCodes::FailedToSatisfyReadPreference); // If the command or exception is not relevant, bail out early. if (!mayNeedResumableChangeStreamErrorLabel) { |