Make ThreadStatus::InterpretOperationProperties take const uint64_t*

Summary: Make ThreadStatus::InterpretOperationProperties take const uint64_t*

Test Plan:
make
make OPT=-DROCKSDB_LITE shared_lib

Reviewers: igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D38445
main
Yueh-Hsuan Chiang 10 years ago
parent bc68bd5a13
commit 714fcc067d
  1. 2
      include/rocksdb/thread_status.h
  2. 6
      util/thread_status_impl.cc

@ -177,7 +177,7 @@ struct ThreadStatus {
// a property value. // a property value.
static std::map<std::string, uint64_t> static std::map<std::string, uint64_t>
InterpretOperationProperties( 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. // Obtain the name of a state given its type.
static const std::string& GetStateName(StateType state_type); static const std::string& GetStateName(StateType state_type);

@ -67,7 +67,8 @@ const std::string& ThreadStatus::GetOperationPropertyName(
std::map<std::string, uint64_t> std::map<std::string, uint64_t>
ThreadStatus::InterpretOperationProperties( ThreadStatus::InterpretOperationProperties(
ThreadStatus::OperationType op_type, uint64_t* op_properties) { ThreadStatus::OperationType op_type,
const uint64_t* op_properties) {
int num_properties; int num_properties;
switch (op_type) { switch (op_type) {
case OP_COMPACTION: case OP_COMPACTION:
@ -145,7 +146,8 @@ const std::string& ThreadStatus::GetOperationPropertyName(
std::map<std::string, uint64_t> std::map<std::string, uint64_t>
ThreadStatus::InterpretOperationProperties( ThreadStatus::InterpretOperationProperties(
ThreadStatus::OperationType op_type, uint64_t* op_properties) { ThreadStatus::OperationType op_type,
const uint64_t* op_properties) {
return std::map<std::string, uint64_t>(); return std::map<std::string, uint64_t>();
} }

Loading…
Cancel
Save