After flushing of log records from buffer after log streams are initialized, reset the writeIdx to indicate that there are no pending records to flush