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:
parent
83e7842f80
commit
e90d3f7752
@ -3701,7 +3701,7 @@ DB::~DB() { }
|
|||||||
|
|
||||||
Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) {
|
Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) {
|
||||||
*dbptr = nullptr;
|
*dbptr = nullptr;
|
||||||
EnvOptions soptions;
|
EnvOptions soptions(options);
|
||||||
|
|
||||||
if (options.block_cache != nullptr && options.no_block_cache) {
|
if (options.block_cache != nullptr && options.no_block_cache) {
|
||||||
return Status::InvalidArgument(
|
return Status::InvalidArgument(
|
||||||
|
Loading…
Reference in New Issue
Block a user