Currently the Go driver can handle integer and float "ok" values in server responses (e.g. "ok": 1.0). However, for at least one command, the server may return a boolean "ok" value (e.g. "ok": true, see SERVER-30968 and CLOUDP-164595 for details). If that happens, the Go driver will consider the response an error because it is not one of the expected values. Update the Go driver to handle boolean "ok" responses and treat "ok": true as a success.
Definition of done:
- Update the two known locations that handle "ok" values to work correctly with BSON boolean values.
- Add a test that asserts that responses with "ok": true are not considered an error.
- is related to
-
SERVER-30968 dbCheck command shouldn't explicitly set "ok" field
- Closed