Skip to content

Commit

Permalink
Merge pull request facebook#918 from mkurdej/fix/assertion-on-no-disk…
Browse files Browse the repository at this point in the history
…-space

Fix failing assertion in logger on Windows when the disk is full.
  • Loading branch information
igorcanadi committed Jan 5, 2016
2 parents 7699439 + 92d0850 commit 1627c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/win/win_logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void WinLogger::Logv(const char* format, va_list ap) {
}

flush_pending_ = true;
assert(bytesWritten == write_size);
assert((bytesWritten == write_size) || (ret == FALSE));
if (bytesWritten > 0) {
log_size_ += write_size;
}
Expand Down

0 comments on commit 1627c4b

Please sign in to comment.