fix(MongoDB) use constants instead of typed enum in OpMsgMessage (#4822)

* fix(MongoDB): Use constants for payload types instead of enum to avoid improper binary serialisation with some compilers (int instead of unsigned char).

* enh(MongoDB): Minor code improvements to use string literals.
This commit is contained in:
Matej Kenda
2024-12-17 09:25:06 +01:00
committed by GitHub
parent b380b57d5d
commit 3f76ad60c3
2 changed files with 43 additions and 47 deletions

View File

@@ -139,12 +139,6 @@ public:
private:
enum PayloadType : UInt8
{
PAYLOAD_TYPE_0 = 0,
PAYLOAD_TYPE_1 = 1
};
std::string _databaseName;
std::string _collectionName;
UInt32 _flags { MSG_FLAGS_DEFAULT };