-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore: Account for value size as well (#1358)
In the existing code, when performing a restore, we didn't consider the size of the value. This means badger would consume a lot of memory if the data consisted of small keys and large values. This PR fixes the issue by forcefully flushing the buffer if it grows beyond 100 MB.
- Loading branch information
Ibrahim Jarif
authored
Jun 9, 2020
1 parent
b762832
commit b2267c2
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters