From 19f409a85bec43eb84fc2b71a5b52670c38ed306 Mon Sep 17 00:00:00 2001 From: WHR Date: Tue, 15 May 2018 03:12:12 +0800 Subject: [PATCH] Fix FileLog error 'invalid seek' on non-seekable files --- src/common/log/FileLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/log/FileLog.cpp b/src/common/log/FileLog.cpp index c8eaf5f7c..cc7188cbd 100644 --- a/src/common/log/FileLog.cpp +++ b/src/common/log/FileLog.cpp @@ -93,5 +93,5 @@ void FileLog::write(char *data, size_t size) uv_fs_t *req = new uv_fs_t; req->data = buf.base; - uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, 0, FileLog::onWrite); + uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, -1, FileLog::onWrite); }