mirror of https://github.com/facebook/rocksdb.git
Remove an unused variable: `last_stats_dump_time_microsec_` (#11824)
Summary:
`last_stats_dump_time_microsec_` is not used after initialization.
I guess that it was previously used to implement periodically dumping stats,
but this functionality has now been delegated to the `PeriodicTaskScheduler`.
4b79e8c003/db/db_impl/db_impl.cc (L770-L778)
Pull Request resolved: https://github.com/facebook/rocksdb/pull/11824
Reviewed By: cbi42
Differential Revision: D49278311
Pulled By: jowlyzhang
fbshipit-source-id: 5856245580afc026e6b490755a45c5436a2375c9
This commit is contained in:
parent
39a4ff2cab
commit
84d335b619
|
@ -211,7 +211,6 @@ DBImpl::DBImpl(const DBOptions& options, const std::string& dbname,
|
|||
disable_delete_obsolete_files_(0),
|
||||
pending_purge_obsolete_files_(0),
|
||||
delete_obsolete_files_last_run_(immutable_db_options_.clock->NowMicros()),
|
||||
last_stats_dump_time_microsec_(0),
|
||||
has_unpersisted_data_(false),
|
||||
unable_to_release_oldest_log_(false),
|
||||
num_running_ingest_file_(0),
|
||||
|
|
|
@ -2633,9 +2633,6 @@ class DBImpl : public DB {
|
|||
// initialized with startup time.
|
||||
uint64_t delete_obsolete_files_last_run_;
|
||||
|
||||
// last time stats were dumped to LOG
|
||||
std::atomic<uint64_t> last_stats_dump_time_microsec_;
|
||||
|
||||
// The thread that wants to switch memtable, can wait on this cv until the
|
||||
// pending writes to memtable finishes.
|
||||
std::condition_variable switch_cv_;
|
||||
|
|
Loading…
Reference in New Issue