diff --git a/benchmarks/db_bench.cc b/benchmarks/db_bench.cc index 8e3f4e7..3aa5a57 100644 --- a/benchmarks/db_bench.cc +++ b/benchmarks/db_bench.cc @@ -74,7 +74,7 @@ static int FLAGS_reads = -1; static int FLAGS_threads = 1; // Size of each value -static int FLAGS_value_size = 100; +static int FLAGS_value_size = 5000; // Arrange to generate values that shrink to this fraction of // their original size after compression diff --git a/db/db_impl.cc b/db/db_impl.cc index 56d51ec..9f51f7b 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1234,7 +1234,7 @@ Status DBImpl::Get(const ReadOptions& options, const Slice& key, mem->Unref(); if (imm != nullptr) imm->Unref(); current->Unref(); - + if(!s.ok())return s; if(value->c_str()[0]==0x00){ *value=value->substr(1); return s;