#3462 fix the test case that crashes the loader closes[t:3462]

git-svn-id: file:///svn/toku/tokudb@30310 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:59:39 -04:00 committed by Yoni Fogel
parent 92244247d3
commit 1bb0bd8abb
2 changed files with 2 additions and 0 deletions

View file

@ -126,6 +126,7 @@ BDB_DONTRUN_TESTS = \
keyrange-dupsort \
keyrange-dupsort-unflat \
keyrange-unflat \
loader-blobs-create-leaf \
loader-cleanup-test \
loader-create-abort \
loader-create-close \

View file

@ -26,6 +26,7 @@ static void insert(DB_LOADER *loader, int k, int val_size) {
// generate the key
char key_buffer[8];
memset(key_buffer, 0, sizeof key_buffer);
int newa = htonl(k);
memcpy(key_buffer, &newa, sizeof newa);