diff --git a/tools/ldb_cmd.cc b/tools/ldb_cmd.cc index b3d443c46..891149fc6 100644 --- a/tools/ldb_cmd.cc +++ b/tools/ldb_cmd.cc @@ -722,6 +722,10 @@ void LDBCommand::PrepareOptions() { } } + if (options_.env == Env::Default()) { + options_.env = config_options_.env; + } + OverrideBaseOptions(); if (exec_state_.IsFailed()) { return;