Whenever a mongoc_server_description_t struct is reset, it zeroes all fields that are declared after "set_name". This makes "tags" and "compressors" invalid. If the server reports any tags or compressors in its ismaster reply then these fields are set correctly, otherwise they remain invalid.
The solution is to avoid the hack of zeroing all fields declared after set_name. Factor out a function that explicitly resets each field, and call that function from mongoc_server_description_init and mongoc_server_description_reset.
- is depended on by
-
PHPC-1012 Upgrade libbson and libmongoc to 1.8.1
- Closed
- is related to
-
CDRIVER-2286 /Cursor/hint/no_warmup/pooled intermittent failure with compression
- Closed