mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-02 07:39:15 -05:00
Update sample-files tool to write json to a file. (#370)
This commit is contained in:
committed by
GitHub Enterprise
parent
a1edeaa423
commit
3ad28f4981
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
@@ -69,7 +67,8 @@ int main(int argc, char** argv) {
|
||||
ShardDBTools::fsck(dbPath);
|
||||
} else if (arg == "sample-files") {
|
||||
std::string dbPath = getNextArg();
|
||||
ShardDBTools::sampleFiles(dbPath);
|
||||
std::string outputFilePath = getNextArg();
|
||||
ShardDBTools::sampleFiles(dbPath, outputFilePath);
|
||||
} else {
|
||||
dieWithUsage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user