Commit 116ddb32 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:5011], remove ydb lock status variables

git-svn-id: file:///svn/toku/tokudb@44207 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0ecffb3a
......@@ -93,31 +93,6 @@ struct __toku_db_env_internal {
int tmpdir_lockfd;
};
/* *********************************************************
Ephemeral locking
********************************************************* */
typedef enum {YDB_LOCK_TAKEN = 0, /* how many times has ydb lock been taken. This is precise since it is updated only when the lock is held. */
YDB_LOCK_RELEASED, /* how many times has ydb lock been released. This is precise since it is updated only when the lock is held. */
YDB_NUM_WAITERS_NOW, /* How many are waiting on the ydb lock right now (including the current lock holder). This is precise since it is updated with a fetch-and-add. */
YDB_MAX_WAITERS, /* max number of simultaneous client threads kept waiting for ydb lock. This is precise (updated only when the lock is held) but may be running a little behind (while waiting for the lock it hasn't been updated). */
YDB_TOTAL_SLEEP_TIME, /* total time spent sleeping for ydb lock scheduling (useconds). This adds up over many clients. This is precise since it is updated with an atomic fetch-and-add. */
YDB_MAX_TIME_YDB_LOCK_HELD, /* max time the ydb lock was held (in microseconds). This is precise since it is updated only when the lock is held. */
YDB_TOTAL_TIME_YDB_LOCK_HELD, /* total time the ydb lock has been held. */
YDB_TOTAL_TIME_SINCE_START, /* total time since the ydb lock was initialized. This is only updated when the lock is accessed (so if you don't acquire the lock this doesn't increase), and it is updated precisely (even though it isn't updated continuously). */
YDB_LOCK_STATUS_NUM_ROWS /* number of rows in this status array */
} ydb_lock_status_entry;
typedef struct {
BOOL initialized;
TOKU_ENGINE_STATUS_ROW_S status[YDB_LOCK_STATUS_NUM_ROWS];
} YDB_LOCK_STATUS_S, *YDB_LOCK_STATUS;
int toku_ydb_check_avail_fs_space(DB_ENV *env);
......
......@@ -1806,7 +1806,6 @@ env_get_engine_status_num_rows (DB_ENV * UU(env), uint64_t * num_rowsp) {
num_rows += YDB_LAYER_STATUS_NUM_ROWS;
num_rows += YDB_C_LAYER_STATUS_NUM_ROWS;
num_rows += YDB_WRITE_LAYER_STATUS_NUM_ROWS;
num_rows += YDB_LOCK_STATUS_NUM_ROWS;
num_rows += LE_STATUS_NUM_ROWS;
num_rows += CP_STATUS_NUM_ROWS;
num_rows += CT_STATUS_NUM_ROWS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment