scan a long for FLAGS_cache_size to fix a compiler warning
Summary: FLAGS_cache_size is a long, no need to scan %lld into a size_t for it (which generates a compiler warning) Test Plan: run db_bench Reviewers: dhruba, heyongqiang Reviewed By: heyongqiang CC: heyongqiang Differential Revision: https://reviews.facebook.net/D5427
This commit is contained in:
parent
837113908c
commit
fa29f82548
@ -1136,7 +1136,6 @@ int main(int argc, char** argv) {
|
|||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
double d;
|
double d;
|
||||||
int n;
|
int n;
|
||||||
size_t nn;
|
|
||||||
long l;
|
long l;
|
||||||
char junk;
|
char junk;
|
||||||
char hdfsname[2048];
|
char hdfsname[2048];
|
||||||
@ -1160,8 +1159,8 @@ int main(int argc, char** argv) {
|
|||||||
FLAGS_value_size = n;
|
FLAGS_value_size = n;
|
||||||
} else if (sscanf(argv[i], "--write_buffer_size=%d%c", &n, &junk) == 1) {
|
} else if (sscanf(argv[i], "--write_buffer_size=%d%c", &n, &junk) == 1) {
|
||||||
FLAGS_write_buffer_size = n;
|
FLAGS_write_buffer_size = n;
|
||||||
} else if (sscanf(argv[i], "--cache_size=%lld%c", &nn, &junk) == 1) {
|
} else if (sscanf(argv[i], "--cache_size=%ld%c", &l, &junk) == 1) {
|
||||||
FLAGS_cache_size = nn;
|
FLAGS_cache_size = l;
|
||||||
} else if (sscanf(argv[i], "--block_size=%d%c", &n, &junk) == 1) {
|
} else if (sscanf(argv[i], "--block_size=%d%c", &n, &junk) == 1) {
|
||||||
FLAGS_block_size = n;
|
FLAGS_block_size = n;
|
||||||
} else if (sscanf(argv[i], "--cache_numshardbits=%d%c", &n, &junk) == 1) {
|
} else if (sscanf(argv[i], "--cache_numshardbits=%d%c", &n, &junk) == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user