SABITHSAHEB commented on code in PR #14132:
URL: https://github.com/apache/trafficserver/pull/14132#discussion_r4645768088
##########
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:
Makes sense. Switched both the commit() and save_logical_snp_obj() comments
to "so it must be checked explicitly" so they don't lean on the removed assert.
--
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]