flush log asynchronously, updates on handling appendEntries request