Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes db.Sync() no-op when badger is running in in-memory mode. The previous code would unnecessarily load up an atomic and acquire locks.
- Loading branch information