Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some unitialized fields in
client
struct (valkey-io#1126)
This commit adds initialization code for the fields `io_last_reply_block` and `io_last_bufpos` of the `client` struct. While in the current code flow, these fields are only accessed after being written in the `trySendWriteToIOThreads`, I discovered that they were not being initialized while doing some changes to the code flow of IO threads. I believe it's good pratice to initialize all fields of a struct upon creation, and will avoid future bugs which are usually hard to debug. Signed-off-by: Ricardo Dias <[email protected]>
- Loading branch information