summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_connection.h
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-11-12 18:28:37 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-12 21:30:22 +0000
commit5e07652c9c8b03004bbbdd0769b530a8a6315327 (patch)
tree097a3b09bd1a8b7b829b7a8adb7602c456c6dc15 /src/mongo/client/dbclient_connection.h
parentac9d73de226e40aaa16f5e8c4c44536d49631e49 (diff)
downloadmongo-5e07652c9c8b03004bbbdd0769b530a8a6315327.tar.gz
SERVER-50509 Rename handleNotMasterResponse to handleNotPrimaryResponse
Diffstat (limited to 'src/mongo/client/dbclient_connection.h')
-rw-r--r--src/mongo/client/dbclient_connection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/dbclient_connection.h b/src/mongo/client/dbclient_connection.h
index 3d80c9c371b..8532ddf231f 100644
--- a/src/mongo/client/dbclient_connection.h
+++ b/src/mongo/client/dbclient_connection.h
@@ -342,10 +342,10 @@ protected:
private:
/**
* Inspects the contents of 'replyBody' and informs the replica set monitor that the host 'this'
- * is connected with is no longer the primary if a "not master" error message or error code was
+ * is connected with is no longer the primary if a "not primary" error message or error code was
* returned.
*/
- void handleNotMasterResponse(const BSONObj& replyBody, StringData errorMsgFieldName);
+ void handleNotPrimaryResponse(const BSONObj& replyBody, StringData errorMsgFieldName);
enum FailAction { kSetFlag, kEndSession, kReleaseSession };
void _markFailed(FailAction action);