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
This commit is contained in:
sdong 2014-02-19 10:10:45 -08:00
parent 83e7842f80
commit e90d3f7752

View File

@ -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(