Commit 4a1717a9 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4126], fix compile of db-benchmark and scanscan

git-svn-id: file:///svn/toku/tokudb@36818 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3b4285e5
...@@ -223,14 +223,14 @@ static void benchmark_setup (void) { ...@@ -223,14 +223,14 @@ static void benchmark_setup (void) {
assert(r == 0); assert(r == 0);
u_int32_t period; u_int32_t period;
r = dbenv->cleaner_get_period(dbenv, &period); r = dbenv->cleaner_get_period(dbenv, &period);
assert(r == 0 && period == cleaner_period); assert(r == 0 && period == (u_int32_t)cleaner_period);
} }
if (cleaner_iterations) { if (cleaner_iterations) {
r = dbenv->cleaner_set_iterations(dbenv, cleaner_iterations); r = dbenv->cleaner_set_iterations(dbenv, cleaner_iterations);
assert(r == 0); assert(r == 0);
u_int32_t iterations; u_int32_t iterations;
r = dbenv->cleaner_get_iterations(dbenv, &iterations); r = dbenv->cleaner_get_iterations(dbenv, &iterations);
assert(r == 0 && iterations == cleaner_iterations); assert(r == 0 && iterations == (u_int32_t)cleaner_iterations);
} }
#endif #endif
......
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