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
This commit is contained in:
Yueh-Hsuan Chiang 2015-05-13 12:26:07 -07:00
parent bc68bd5a13
commit 714fcc067d
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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:
@ -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>();
}