JosiahWI commented on code in PR #14132:
URL: https://github.com/apache/trafficserver/pull/14132#discussion_r4642779203
##########
plugins/experimental/stek_share/state_machine.h:
##########
@@ -53,11 +53,12 @@ class STEKShareSM : public nuraft::state_machine
void *byte_array = bs_data.get_bytes(len);
// Dbg(dbg_ctl, "commit %lu: %s", log_idx,
hex_str(std::string(reinterpret_cast<char *>(byte_array), len)).c_str());
- assert(len == SSL_TICKET_KEY_SIZE);
-
- {
+ // The length is whatever the leader put in the entry, so it must be
checked in release builds too.
Review Comment:
The phrase "it must be checked in release builds too" doesn't make sense
without the context of the debug assertion. Consider something like "the length
is whatever the leader put in the entry, so it must be checked explicitly."
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]