diff --git a/db/db_bench.cc b/db/db_bench.cc index d0f83778c..5e3426b7f 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1190,7 +1190,7 @@ int main(int argc, char** argv) { } else if (sscanf(argv[i], "--mmap_read=%d%c", &n, &junk) == 1 && (n == 0 || n == 1)) { useMmapRead = n; - } else if (sscanf(argv[i], "--readhead=%d%c", &n, &junk) == 1 && + } else if (sscanf(argv[i], "--readahead=%d%c", &n, &junk) == 1 && (n == 0 || n == 1)) { useFsReadAhead = n; } else if (sscanf(argv[i], "--statistics=%d%c", &n, &junk) == 1 && diff --git a/tools/ldb.cc b/tools/ldb.cc index 08fd25396..a44a713de 100644 --- a/tools/ldb.cc +++ b/tools/ldb.cc @@ -5,6 +5,7 @@ #include #include #include +#include #include "leveldb/db.h" #include "leveldb/options.h" @@ -122,7 +123,7 @@ static void dump_db( } } - fprintf(stdout, "Keys in range: %d\n", count); + fprintf(stdout, "Keys in range: %lld\n", (long long) count); // Clean up delete iter;