Skip to content

Commit

Permalink
Make ThreadStatus::InterpretOperationProperties take const uint64_t*
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yhchiang committed May 13, 2015
1 parent bc68bd5 commit 714fcc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/rocksdb/thread_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ struct ThreadStatus {
// a property value.
static std::map<std::string, uint64_t>
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);
Expand Down
6 changes: 4 additions & 2 deletions util/thread_status_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const std::string& ThreadStatus::GetOperationPropertyName(

std::map<std::string, uint64_t>
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:
Expand Down Expand Up @@ -145,7 +146,8 @@ const std::string& ThreadStatus::GetOperationPropertyName(

std::map<std::string, uint64_t>
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>();
}

Expand Down

0 comments on commit 714fcc0

Please sign in to comment.