Permalink
Browse files

ssdb-dump with compression

  • Loading branch information...
1 parent 853eb3a commit ec89cfc0a47be0f00e0b8c83c5bd3534e32f48d0 ideawu committed Feb 13, 2014
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/version.h
  2. +3 −0 tools/ssdb-dump.cpp
View
@@ -1,6 +1,6 @@
#ifndef SSDB_DEPS_H
#ifndef SSDB_VERSION
-#define SSDB_VERSION "1.6.8"
+#define SSDB_VERSION "1.6.8.1"
#include <stdlib.h>
#include <jemalloc/jemalloc.h>
#endif
View
@@ -109,6 +109,9 @@ int main(int argc, char **argv){
leveldb::Options options;
leveldb::Status status;
options.create_if_missing = true;
+ options.write_buffer_size = 32 * 1024 * 1024;
+ options.compression = leveldb::kSnappyCompression;
+
status = leveldb::DB::Open(options, data_dir.c_str(), &db);
if(!status.ok()){
printf("open leveldb: %s error!\n", output_folder);

0 comments on commit ec89cfc

Please sign in to comment.