If the method returns true commitlog should sync to file immediately after writing the entry and wait for flush to complete before returning.
If the method returns true commitlog should sync to file immediately after writing the entry and wait for flush to complete before returning.