bugfix. recover cache->last_flushed_segment_id was wrong, fixed. flush_current_buffer command seems to be OK.