summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/base_cloner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/base_cloner.cpp')
-rw-r--r--src/mongo/db/repl/base_cloner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/base_cloner.cpp b/src/mongo/db/repl/base_cloner.cpp
index a9a51f891bf..40a17c02a0c 100644
--- a/src/mongo/db/repl/base_cloner.cpp
+++ b/src/mongo/db/repl/base_cloner.cpp
@@ -167,7 +167,7 @@ Status BaseCloner::checkRollBackIdIsUnchanged() {
try {
getClient()->simpleCommand("admin", &info, "replSetGetRBID");
} catch (DBException& e) {
- if (ErrorCodes::isNetworkError(e)) {
+ if (ErrorCodes::isRetriableError(e)) {
auto status = e.toStatus().withContext(
": failed while attempting to retrieve rollBackId after re-connect");
LOG(1) << status;