When rewriting, flush the new log earlier

... such that LRU, which is operating on the temporary log, can
make room.

Ref #28
parent 94c2a3ea
......@@ -3317,6 +3317,8 @@ logbuffer_append(struct fellow_fd *ffd,
AN(off);
if (locked == 0) {
// flush destination to get disk blocks #28
logbuffer_flush(ffd, to, 0, LBUF_ALL);
/* avoid chasing the tail forever
* XXX good threshold?
*/
......
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