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
main
sdong 11 years ago
parent 83e7842f80
commit e90d3f7752
  1. 2
      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(

Loading…
Cancel
Save