Skip to content

Commit

Permalink
Optimize setting async cmd latency_type.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianNichols committed Feb 26, 2024
1 parent 7192e98 commit 37a374a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/aerospike/as_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ as_event_command_execute_in_loop(as_event_loop* event_loop, as_event_command* cm
}
else {
cmd->begin = 0;
cmd->latency_type = AS_LATENCY_TYPE_NONE;
}
cmd->latency_type = cmd->cluster->metrics_enabled ? cmd->latency_type : AS_LATENCY_TYPE_NONE;
cmd->write_offset = (uint32_t)(cmd->buf - (uint8_t*)cmd);
cmd->buf += cmd->write_len;
cmd->conn = NULL;
Expand Down

0 comments on commit 37a374a

Please sign in to comment.