1
0
mirror of https://github.com/google/leveldb.git synced 2025-04-15 13:20:37 +08:00
This commit is contained in:
tangwz 2025-03-19 02:37:32 -03:00 committed by GitHub
commit 0d518a0fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -509,7 +509,7 @@ int main(int argc, char** argv) {
FLAGS_page_size = n;
} else if (sscanf(argv[i], "--compression=%d%c", &n, &junk) == 1 &&
(n == 0 || n == 1)) {
FLAGS_compression = (n == 1) ? true : false;
FLAGS_compression = (n == 1);
} else if (strncmp(argv[i], "--db=", 5) == 0) {
FLAGS_db = argv[i] + 5;
} else {