From c967436453bcabd8f5e38a26097adc960145ad3b Mon Sep 17 00:00:00 2001 From: GuKaifeng Date: Tue, 8 Mar 2022 11:03:56 -0800 Subject: [PATCH] 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 --- options/db_options.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/options/db_options.cc b/options/db_options.cc index 9bc9987833..e6fca527de 100644 --- a/options/db_options.cc +++ b/options/db_options.cc @@ -737,7 +737,6 @@ ImmutableDBOptions::ImmutableDBOptions(const DBOptions& options) checksum_handoff_file_types(options.checksum_handoff_file_types), lowest_used_cache_tier(options.lowest_used_cache_tier), compaction_service(options.compaction_service) { - stats = statistics.get(); fs = env->GetFileSystem(); if (env != nullptr) { clock = env->GetSystemClock().get();