move static msgs out of Status class (#4144)
Summary: The member msgs of class Status contains all types of status messages. When users dump a Status object, msgs will confuse users. So move it out of class Status by making it as file-local static variable. Closes #3831 . Pull Request resolved: https://github.com/facebook/rocksdb/pull/4144 Differential Revision: D8941419 Pulled By: sagar0 fbshipit-source-id: 56b0510258465ff26db15aa6b04e01532e053e3dmain
parent
c6d2a7f821
commit
374c37da5b
@ -1,22 +0,0 @@ |
|||||||
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
|
||||||
// This source code is licensed under both the GPLv2 (found in the
|
|
||||||
// COPYING file in the root directory) and Apache 2.0 License
|
|
||||||
// (found in the LICENSE.Apache file in the root directory).
|
|
||||||
|
|
||||||
#include "rocksdb/status.h" |
|
||||||
|
|
||||||
namespace rocksdb { |
|
||||||
|
|
||||||
const char* Status::msgs[] = { |
|
||||||
"", // kNone
|
|
||||||
"Timeout Acquiring Mutex", // kMutexTimeout
|
|
||||||
"Timeout waiting to lock key", // kLockTimeout
|
|
||||||
"Failed to acquire lock due to max_num_locks limit", // kLockLimit
|
|
||||||
"No space left on device", // kNoSpace
|
|
||||||
"Deadlock", // kDeadlock
|
|
||||||
"Stale file handle", // kStaleFile
|
|
||||||
"Memory limit reached", // kMemoryLimit
|
|
||||||
"Space limit reached" // kSpaceLimit
|
|
||||||
}; |
|
||||||
|
|
||||||
} // namespace rocksdb
|
|
Loading…
Reference in new issue