forked from dgraph-io/badger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(badger): Do not reuse variable across badger commands (dgraph-io#…
…1624) The same variables were being across multiple badger commands. The default value of a flag that uses the same variable across two commands could be from one of the commands and it isn't clear which default value would be used. The numVersions command was being used in flatten (default value 1) and stream (default value 0). Running badger stream --help would show the default value to be 0 but if you print the value of the numVersions variable, it would turn out to be 1. This is misleading. This PR separates the variable so that they don't overlap. This PR also adds the compression flag to the flatten tool.
- Loading branch information
Ibrahim Jarif
authored
Dec 23, 2020
1 parent
c20628f
commit 3adc574
Showing
5 changed files
with
165 additions
and
143 deletions.
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
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
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
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
Oops, something went wrong.