From e90d3f7752f9e927d6288cc7099c179fa37e87f1 Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 19 Feb 2014 10:10:45 -0800 Subject: [PATCH] First Transaction Logs Should Not Skip Storage Options Given Summary: Currently, the first transaction log file ignore bytes_per_sync and other storage-related options. It is not consistent. Fix it. Test Plan: make all check. See the options set in GDB. Reviewers: haobo, kailiu Reviewed By: haobo CC: igor, ljin, yhchiang, leveldb, dhruba Differential Revision: https://reviews.facebook.net/D16215 --- db/db_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 575307bce..041c62107 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -3701,7 +3701,7 @@ DB::~DB() { } Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) { *dbptr = nullptr; - EnvOptions soptions; + EnvOptions soptions(options); if (options.block_cache != nullptr && options.no_block_cache) { return Status::InvalidArgument(