leveldb thrift server uses an incorrect root directory
Summary: The offsets used to speficy hostname and dbdir from the command line were not handled correctly. Test Plan: none. Reviewers: heyongqiang Reviewed By: heyongqiang Differential Revision: https://reviews.facebook.net/D4683
This commit is contained in:
parent
f16e393658
commit
7c0b5ec54a
@ -73,10 +73,10 @@ public:
|
||||
cache_size_ = l;
|
||||
} else if (sscanf(argv[i], "--cache_numshardbits=%d%c", &n, &junk) == 1) {
|
||||
cache_numshardbits_ = n;
|
||||
} else if (strncmp(argv[i], "--hostname=", 10) == 0) {
|
||||
hostname_ = argv[i] + 10;
|
||||
} else if (strncmp(argv[i], "--rootdir=", 9) == 0) {
|
||||
rootdir_ = argv[i] + 9;
|
||||
} else if (strncmp(argv[i], "--hostname=", 11) == 0) {
|
||||
hostname_ = argv[i] + 11;
|
||||
} else if (strncmp(argv[i], "--rootdir=", 10) == 0) {
|
||||
rootdir_ = argv[i] + 10;
|
||||
} else {
|
||||
fprintf(stderr, "Invalid flag '%s'\n", argv[i]);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user