You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, yes @chenkline your fix looks correct to me. Just a question, did you find this bug in real world scenarios or is just an analysis you are doing in the Redis code? Because it looks like that when the fwrite() call failed, anyway the underlying RIO process aborted, so this change does not remove any real world bug. It's important to me to understand if a given bug also had real-world effects or not. Thanks.
// Original code :
static size_t rioFileWrite(rio *r, const void *buf, size_t len) {
size_t retval;
}
this line:
r->io.file.buffered += len;
should be:
if ( retval >= 0 ) {
r->io.file.buffered += retval ;
}
The text was updated successfully, but these errors were encountered: