Commit a933417b authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:2504] Restored function toku_ltm_get_max_locks() needed by tests.

git-svn-id: file:///svn/toku/tokudb@19282 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4adc495d
......@@ -220,6 +220,16 @@ toku_ltm_get_status(toku_ltm* mgr, LTM_STATUS s) {
}
int toku_ltm_get_max_locks(toku_ltm* mgr, u_int32_t* max_locks) {
int r = ENOSYS;
if (!mgr || !max_locks) { r = EINVAL; goto cleanup; }
*max_locks = mgr->max_locks;
r = 0;
cleanup:
return r;
}
int toku_ltm_get_max_locks_per_db(toku_ltm* mgr, u_int32_t* max_locks) {
int r = ENOSYS;
......
......@@ -520,6 +520,8 @@ typedef struct ltm_status {
void toku_ltm_get_status(toku_ltm* mgr, LTM_STATUS s);
int toku_ltm_get_max_locks(toku_ltm* mgr, u_int32_t* max_locks);
int toku_ltm_get_max_locks_per_db(toku_ltm* mgr, u_int32_t* max_locks);
void toku_lt_add_ref(toku_lock_tree* tree);
......
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