Commit cb44b35d authored by Yoni Fogel's avatar Yoni Fogel

Addresses 293

Bugfix with toku_lt_set_txn_add_lt_callback
Had the error case backwards.

git-svn-id: file:///svn/tokudb@2142 c7de825b-a66e-492c-adef-691d508d4ae1
parent 04c2aca0
......@@ -1226,7 +1226,7 @@ int toku_lt_set_dups(toku_lock_tree* tree, BOOL duplicates) {
int toku_lt_set_txn_add_lt_callback(toku_lock_tree* tree,
int (*callback)(DB_TXN*, toku_lock_tree*)) {
if (!tree || !callback) return EINVAL;
if (!tree->dups_final) return EDOM;
if (tree->dups_final) return EDOM;
tree->lock_callback = callback;
return 0;
}
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