Commit 385b669b authored by Yoni Fogel's avatar Yoni Fogel

Removed some additional void* types in favor of static types in lock tree

git-svn-id: file:///svn/tokudb@2255 c7de825b-a66e-492c-adef-691d508d4ae1
parent c89743d0
......@@ -44,7 +44,7 @@ char* toku_lt_strerror(TOKU_LT_ERROR r) {
return "Unknown error in locking data structures.\n";
}
/* Compare two payloads assuming that at least one of them is infinite */
inline static int __toku_infinite_compare(void* a, void* b) {
inline static int __toku_infinite_compare(const DBT* a, const DBT* b) {
if (a == b) return 0;
if (a == toku_lt_infinity) return 1;
if (b == toku_lt_infinity) return -1;
......@@ -52,7 +52,7 @@ inline static int __toku_infinite_compare(void* a, void* b) {
assert(b == toku_lt_neg_infinity); return 1;
}
inline static BOOL __toku_lt_is_infinite(const void* p) {
inline static BOOL __toku_lt_is_infinite(const DBT* p) {
if (p == toku_lt_infinity || p == toku_lt_neg_infinity) {
DBT* dbt = (DBT*)p;
assert(!dbt->data && !dbt->size);
......
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