fix log compaction with a log over 2GB
commit93ab93451d9355be7bd46fc27d9d521f2287376a
authorBart Schuurmans <bart@minnozz.com>
Sun, 4 Oct 2015 12:07:58 +0000 (4 14:07 +0200)
committerKeith Rarick <kr@xph.us>
Tue, 6 Oct 2015 02:42:10 +0000 (5 19:42 -0700)
treebd65cc7a3359435429a30398f99225dd11440aa3
parent5fce2d1e14b61b0ffcb5d67f85f35792f8542d60
fix log compaction with a log over 2GB

There was a 32-bit integer overflow calculating the
ratio of used to wasted log space. For a log over 2GB,
checking the ratio would always conclude it was under
the acceptable threshold, and compaction would never
run. Now we record the log size and compute the ratio in
64 bits.

Fixes #276
Closes #278
dat.h
walg.c