fixed bug that flushAll in LogStorageEngine doesn't switch back to false