Commit 3e29f976 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Fix valgrind problems caused by logging. Addresses #27.

git-svn-id: file:///svn/tokudb@941 c7de825b-a66e-492c-adef-691d508d4ae1
parent bacd9f5b
...@@ -552,7 +552,7 @@ int toku_pmainternal_smooth_region (TOKUTXN txn, FILENUM filenum, DISKOFF diskof ...@@ -552,7 +552,7 @@ int toku_pmainternal_smooth_region (TOKUTXN txn, FILENUM filenum, DISKOFF diskof
if (ipa.array==0) return errno; if (ipa.array==0) return errno;
int j=0; int j=0;
for (i=0; i<n_saved; i++) { for (i=0; i<n_saved; i++) {
if (tmppairs[i].newtag!=newidx) { if (tmppairs[i].pair!=0) {
ipa.array[j].a = tmppairs[i].oldtag; ipa.array[j].a = tmppairs[i].oldtag;
ipa.array[j].b = tmppairs[i].newtag; ipa.array[j].b = tmppairs[i].newtag;
j++; j++;
......
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