Skip to content

Commit e90d3f7

Browse files
committed
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
1 parent 83e7842 commit e90d3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/db_impl.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3701,7 +3701,7 @@ DB::~DB() { }
37013701

37023702
Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) {
37033703
*dbptr = nullptr;
3704-
EnvOptions soptions;
3704+
EnvOptions soptions(options);
37053705

37063706
if (options.block_cache != nullptr && options.no_block_cache) {
37073707
return Status::InvalidArgument(

0 commit comments

Comments
 (0)