Changed the way blockbuffers are used after they fill up.

The blockbuffers that get full are now moved to the end of the list of blocks. This prevents messages being written to the disk in the wrong order.
This commit is contained in:
Markus Makela
2014-09-09 10:44:20 +03:00
parent 2097b54c35
commit aa83b6b21a
2 changed files with 19 additions and 17 deletions

View File

@ -45,7 +45,7 @@ error=0
for i in $MESSAGES
do
if [[ $i -le $prev ]]
if [[ $i -ne $(( prev + 1 )) ]]
then
error=1
echo "message mismatch: $i was after $prev."