rocksdb/utilities
Yueh-Hsuan Chiang d0c5f28a5c Introduce GetThreadList API
Summary:
Add GetThreadList API, which allows developer to track the
status of each process.  Currently, calling GetThreadList will
only get the list of background threads in RocksDB with their
thread-id and thread-type (priority) set.  Will add more support
on this in the later diffs.

ThreadStatus currently has the following properties:

  // An unique ID for the thread.
  const uint64_t thread_id;

  // The type of the thread, it could be ROCKSDB_HIGH_PRIORITY,
  // ROCKSDB_LOW_PRIORITY, and USER_THREAD
  const ThreadType thread_type;

  // The name of the DB instance where the thread is currently
  // involved with.  It would be set to empty string if the thread
  // does not involve in any DB operation.
  const std::string db_name;

  // The name of the column family where the thread is currently
  // It would be set to empty string if the thread does not involve
  // in any column family.
  const std::string cf_name;

  // The event that the current thread is involved.
  // It would be set to empty string if the information about event
  // is not currently available.

Test Plan:
./thread_list_test
export ROCKSDB_TESTS=GetThreadList
./db_test

Reviewers: rven, igor, sdong, ljin

Reviewed By: ljin

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D25047
2014-11-20 10:49:32 -08:00
..
backupable Fix broken test in 31b02d. 2014-11-13 14:46:30 -08:00
compacted_db Introduce GetThreadList API 2014-11-20 10:49:32 -08:00
document Turn -Wshadow back on 2014-11-06 11:14:28 -08:00
geodb Turn on -Wshorten-64-to-32 and fix all the errors 2014-11-11 16:47:22 -05:00
merge_operators Apply InfoLogLevel to the logs in utilities/merge_operators/uint64add.cc 2014-10-29 17:10:21 -07:00
redis Turn on -Wshorten-64-to-32 and fix all the errors 2014-11-11 16:47:22 -05:00
spatialdb Add concurrency to compacting SpatialDB 2014-11-13 16:34:29 -05:00
ttl Turn on -Wshorten-64-to-32 and fix all the errors 2014-11-11 16:47:22 -05:00
write_batch_with_index Turn on -Wshorten-64-to-32 and fix all the errors 2014-11-11 16:47:22 -05:00
merge_operators.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00