remove redundant assignment code for member state (#9665)

Summary:
Remove redundant assignment code for member `state` in the constructor of `ImmutableDBOptions`.
There are two identical and redundant statements `stats = statistics.get();` in lines 740 and 748 of the code.
This commit removed the line 740.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/9665

Reviewed By: ajkr

Differential Revision: D34686649

Pulled By: riversand963

fbshipit-source-id: 8f246ece382b6845528f4e2c843ce09bb66b2b0f
This commit is contained in:
GuKaifeng 2022-03-08 11:03:56 -08:00 committed by Facebook GitHub Bot
parent 4a9ae4f713
commit c967436453
1 changed files with 0 additions and 1 deletions

View File

@ -737,7 +737,6 @@ ImmutableDBOptions::ImmutableDBOptions(const DBOptions& options)
checksum_handoff_file_types(options.checksum_handoff_file_types), checksum_handoff_file_types(options.checksum_handoff_file_types),
lowest_used_cache_tier(options.lowest_used_cache_tier), lowest_used_cache_tier(options.lowest_used_cache_tier),
compaction_service(options.compaction_service) { compaction_service(options.compaction_service) {
stats = statistics.get();
fs = env->GetFileSystem(); fs = env->GetFileSystem();
if (env != nullptr) { if (env != nullptr) {
clock = env->GetSystemClock().get(); clock = env->GetSystemClock().get();