Skip to content

Commit 54a9621

Browse files
committed
Tuning.
1 parent 2f5910f commit 54a9621

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/build_filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include "mappeablebloomfilter.h"
1919

2020
static void printusage(char *command) {
21-
printf(" Try %s -f xor8 -o filter.bin mydatabase \n", command);
21+
printf(" Try %s -f binaryfuse8 -o filter.bin mydatabase \n", command);
2222
;
23-
printf("The supported filters are xor8, binaryfuse8 and bloom12.\n");
23+
printf("The supported filters are xor8, binaryfuse8, binaryfuse16 and bloom12.\n");
2424

2525
printf("The -V flag verifies the resulting filter.\n");
2626
}

src/query_filter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ int main(int argc, char **argv) {
8787
printf("Cannot read the input file %s.", filename);
8888
return EXIT_FAILURE;
8989
}
90+
// should be done with an enum:
9091
bool xor8 = false;
9192
bool bin16 = false;
9293
bool bloom12 = false;
9394
if (fread(&cookie, sizeof(cookie), 1, fp) != 1)
9495
printf("failed read.\n");
9596
if (fread(&seed, sizeof(seed), 1, fp) != 1)
9697
printf("failed read.\n");
97-
98+
// should be a switch/case.
9899
if (cookie != 1234569) {
99100
if(cookie == 1234570) {
100101
bin16 = true;

0 commit comments

Comments
 (0)