-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf0ce7
commit 2fe7748
Showing
6 changed files
with
35 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
#include <inttypes.h> | ||
|
||
// Default value: 100 MB | ||
constexpr int64_t RDB_JSON_MAX_SIZE = 1024 * 1024 * 100; | ||
|
||
struct CmdOptions | ||
{ | ||
bool skipAttributes; | ||
bool dumpTempView; | ||
bool dumpGraph; | ||
std::string rdbJsonFile; | ||
uint64_t rdbJSonSizeLimit; | ||
}; | ||
|
||
void printUsage(); | ||
CmdOptions handleCmdLine(int argc, char **argv); | ||
sai_status_t dumpFromRedisRdbJson(const std::string file_name); | ||
sai_status_t preProcessFile(const std::string file_name); |
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 was deleted.
Oops, something went wrong.