Commit 56b15cd8 authored by Vincenzo Liberatore's avatar Vincenzo Liberatore

Addresses #350

Tests on more c_get flags ... 

git-svn-id: file:///svn/tokudb@2275 c7de825b-a66e-492c-adef-691d508d4ae1
parent e1b999be
...@@ -59,3 +59,14 @@ static inline uint32_t myrandom (void) { ...@@ -59,3 +59,14 @@ static inline uint32_t myrandom (void) {
rstate = (279470275ull*(uint64_t)rstate)%4294967291ull; rstate = (279470275ull*(uint64_t)rstate)%4294967291ull;
return rstate; return rstate;
} }
int int_dbt_cmp(DB *db, const DBT *a, const DBT *b) {
assert(db && a && b);
assert(a->size == sizeof(int));
assert(b->size == sizeof(int));
int x = *(int *) a->data;
int y = *(int *) b->data;
return x - y;
}
This diff is collapsed.
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