Skip to content

Commit dfab64e

Browse files
authored
CDRIVER-4000 Remove undefined macro (#817)
Fix backport of CDRIVER-4000 to r1.17 branch.
1 parent e7bf61d commit dfab64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/src/mongoc/mongoc-apm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ mongoc_apm_is_sensitive_command (const char *command_name,
900900
}
901901

902902
if (0 != strcasecmp (command_name, "hello") &&
903-
0 != strcasecmp (command_name, HANDSHAKE_CMD_LEGACY_HELLO)) {
903+
0 != strcasecmp (command_name, "ismaster")) {
904904
return false;
905905
}
906906

@@ -926,7 +926,7 @@ mongoc_apm_is_sensitive_reply (const char *command_name, const bson_t *reply)
926926
}
927927

928928
if (0 != strcasecmp (command_name, "hello") &&
929-
0 != strcasecmp (command_name, HANDSHAKE_CMD_LEGACY_HELLO)) {
929+
0 != strcasecmp (command_name, "ismaster")) {
930930
return false;
931931
}
932932

0 commit comments

Comments
 (0)