Commit 003757fb authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1531 Port test1426 to windows

Order of evaluation of parameters is not guaranteed in C.  Now linux and windows will produce same output.

git-svn-id: file:///svn/toku/tokudb@11853 c7de825b-a66e-492c-adef-691d508d4ae1
parent 05ba328e
......@@ -57,7 +57,10 @@ do_insert_delete_fifo (void)
{
char k[100],v[100];
int keylen = snprintf(k, sizeof k, "%016" PRIu64 "key", i);
int vallen = snprintf(v, sizeof v, "%016" PRIu64 "val%08x%08x%08x", i, myrandom(), myrandom(), myrandom());
u_int32_t rand1 = myrandom();
u_int32_t rand2 = myrandom();
u_int32_t rand3 = myrandom();
int vallen = snprintf(v, sizeof v, "%016" PRIu64 "val%08x%08x%08x", i, rand1, rand2, rand3);
DBT kt, vt;
r = db->put(db, null_txn, dbt_init(&kt, k, keylen) , dbt_init(&vt, v, vallen), DB_YESOVERWRITE); CKERR(r);
}
......
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