diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-10-22 17:40:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-23 04:09:49 +0000 |
commit | 52d60041fcc406352a6dfcf981b9001f886b1230 (patch) | |
tree | b0c4dece3058d15b0fd10ff203e53128340d31a9 /src/mongo/db/dbmessage.h | |
parent | df53ba83283c47d4c0668cb19310e1a23d52901c (diff) | |
download | mongo-52d60041fcc406352a6dfcf981b9001f886b1230.tar.gz |
SERVER-50511 Change local variables and functions in dbclient files
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r-- | src/mongo/db/dbmessage.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h index 8aaf856d595..b8726d98992 100644 --- a/src/mongo/db/dbmessage.h +++ b/src/mongo/db/dbmessage.h @@ -299,7 +299,7 @@ enum QueryOptions { /** allow query of replica slave. normally these return an error except for namespace "local". */ - QueryOption_SlaveOk = 1 << 2, + QueryOption_SecondaryOk = 1 << 2, // In previous versions of the server, clients were required to set this option in order to // enable an optimized oplog scan. As of 4.4, the server will apply the optimization for @@ -341,11 +341,11 @@ enum QueryOptions { // DBClientCursor reserves flag 1 << 30 to force the use of OP_QUERY. - QueryOption_AllSupported = QueryOption_CursorTailable | QueryOption_SlaveOk | + QueryOption_AllSupported = QueryOption_CursorTailable | QueryOption_SecondaryOk | QueryOption_NoCursorTimeout | QueryOption_AwaitData | QueryOption_Exhaust | QueryOption_PartialResults, - QueryOption_AllSupportedForSharding = QueryOption_CursorTailable | QueryOption_SlaveOk | + QueryOption_AllSupportedForSharding = QueryOption_CursorTailable | QueryOption_SecondaryOk | QueryOption_NoCursorTimeout | QueryOption_AwaitData | QueryOption_PartialResults, }; |