diff --git a/util/thread_status_util.h b/util/thread_status_util.h index 769144e61..1bfc80ba2 100644 --- a/util/thread_status_util.h +++ b/util/thread_status_util.h @@ -116,8 +116,10 @@ class AutoThreadOperationStageUpdater { ThreadStatus::OperationStage stage); ~AutoThreadOperationStageUpdater(); +#if ROCKSDB_USING_THREAD_STATUS private: ThreadStatus::OperationStage prev_stage_; +#endif }; } // namespace rocksdb