Fixed iOS build caused by GetThreadList feature.
Summary: Fixed iOS build caused by GetThreadList feature.
This commit is contained in:
parent
aa31fc5068
commit
9222a2d024
@ -131,10 +131,10 @@ class ThreadStatusImpl {
|
|||||||
bool check_exist);
|
bool check_exist);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// The thread-local variable for storing thread status.
|
|
||||||
static __thread ThreadStatusData* thread_status_data_;
|
|
||||||
|
|
||||||
#if ROCKSDB_USING_THREAD_STATUS
|
#if ROCKSDB_USING_THREAD_STATUS
|
||||||
|
// The thread-local variable for storing thread status.
|
||||||
|
static __thread ThreadStatusData* thread_status_data_;
|
||||||
|
|
||||||
// Obtain the pointer to the thread status data. It also performs
|
// Obtain the pointer to the thread status data. It also performs
|
||||||
// initialization when necessary.
|
// initialization when necessary.
|
||||||
@ -157,6 +157,8 @@ class ThreadStatusImpl {
|
|||||||
// associated to the same db_key faster.
|
// associated to the same db_key faster.
|
||||||
static std::unordered_map<
|
static std::unordered_map<
|
||||||
const void*, std::unordered_set<const void*>> db_key_map_;
|
const void*, std::unordered_set<const void*>> db_key_map_;
|
||||||
|
#else
|
||||||
|
static ThreadStatusData* thread_status_data_;
|
||||||
#endif // ROCKSDB_USING_THREAD_STATUS
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user