Commit b4311d1c authored by yiwu-arbug's avatar yiwu-arbug Committed by Connor

Fail GC job if sync WAL fail (#20)

Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
parent ec440e2a
......@@ -481,7 +481,8 @@ Status BlobGCJob::RewriteValidKeyToLSM() {
}
if (s.ok()) {
db_impl->FlushWAL(true);
// Flush and sync WAL.
s = db_impl->FlushWAL(true /*sync*/);
}
return s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment