summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2022-06-22 14:21:07 +0000
committerEric Cox <eric.cox@mongodb.com>2022-06-22 14:21:07 +0000
commit44385b89a690f1feda55d8e888a08f33eab0a020 (patch)
tree6ec320d4c7de3e7ff00231aec91106f844701cc3 /src/mongo/db/dbmessage.h
parente24af2270e6bc1d435845c8fdd02a1eb24155da2 (diff)
downloadmongo-44385b89a690f1feda55d8e888a08f33eab0a020.tar.gz
Revert "Merge branch 'v6.0' of github.com:10gen/mongo into v6.0"
This reverts commit e24af2270e6bc1d435845c8fdd02a1eb24155da2, reversing changes made to ecf315a92efb6283a4c8f3fd079dd81398563fa6.
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index e280bf296be..95e0cfc6f7f 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -227,7 +227,7 @@ public:
* Indicates whether this message is expected to have a ns.
*/
bool messageShouldHaveNs() const {
- return static_cast<int>(_msg.operation() >= dbUpdate) & (_msg.operation() <= dbDelete);
+ return (_msg.operation() >= dbUpdate) & (_msg.operation() <= dbDelete);
}
/**