We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi @greensky00 , I found a potenal issue, could you pls have a look.
In log_val_type , custom is set to 999
enum log_val_type { app_log = 1, conf = 2, cluster_server = 3, log_pack = 4, snp_sync_req = 5, custom = 999, };
But log_entry uses uint8 to store the value_type_ whose type is value_type_, but max of uint8 is 255.
ptr<buffer> serialize() { buff_->pos(0); ptr<buffer> buf = buffer::alloc( sizeof(ulong) + sizeof(char) + buff_->size() ); buf->put(term_); buf->put( (static_cast<byte>(value_type_)) ); buf->put(*buff_); buf->pos(0); return buf; }
The text was updated successfully, but these errors were encountered:
Thanks, let me think of the fix without hurting the backward compatibility.
Sorry, something went wrong.
No branches or pull requests
hi @greensky00 , I found a potenal issue, could you pls have a look.
In log_val_type , custom is set to 999
But log_entry uses uint8 to store the value_type_ whose type is value_type_, but max of uint8 is 255.
The text was updated successfully, but these errors were encountered: