diff --git a/include/rocksdb/thread_status.h b/include/rocksdb/thread_status.h index 7bb304c2b..e695b48db 100644 --- a/include/rocksdb/thread_status.h +++ b/include/rocksdb/thread_status.h @@ -177,7 +177,7 @@ struct ThreadStatus { // a property value. static std::map InterpretOperationProperties( - OperationType op_type, uint64_t* op_properties); + OperationType op_type, const uint64_t* op_properties); // Obtain the name of a state given its type. static const std::string& GetStateName(StateType state_type); diff --git a/util/thread_status_impl.cc b/util/thread_status_impl.cc index a21f6b355..52dff91f2 100644 --- a/util/thread_status_impl.cc +++ b/util/thread_status_impl.cc @@ -67,7 +67,8 @@ const std::string& ThreadStatus::GetOperationPropertyName( std::map ThreadStatus::InterpretOperationProperties( - ThreadStatus::OperationType op_type, uint64_t* op_properties) { + ThreadStatus::OperationType op_type, + const uint64_t* op_properties) { int num_properties; switch (op_type) { case OP_COMPACTION: @@ -145,7 +146,8 @@ const std::string& ThreadStatus::GetOperationPropertyName( std::map ThreadStatus::InterpretOperationProperties( - ThreadStatus::OperationType op_type, uint64_t* op_properties) { + ThreadStatus::OperationType op_type, + const uint64_t* op_properties) { return std::map(); }