From 92d0850f1cacb1a6dd9d3a8d1005f8a8db41ffce Mon Sep 17 00:00:00 2001
From: Marek Kurdej <marek@quasardb.net>
Date: Tue, 5 Jan 2016 13:35:14 +0100
Subject: [PATCH] Fix failing assertion in logger on Windows when the disk is
 full.

---
 port/win/win_logger.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/port/win/win_logger.cc b/port/win/win_logger.cc
index e89c1af6d..9d6203cc4 100644
--- a/port/win/win_logger.cc
+++ b/port/win/win_logger.cc
@@ -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;
     }