From: Mikko Rasa Date: Wed, 26 Jun 2013 19:09:28 +0000 (+0300) Subject: Set pending_block when a block can't be allocated X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=434e283552f3010d28eacf420b4b8d5254d1ea50;p=r2c2.git Set pending_block when a block can't be allocated This got accientally removed in dda1e6c --- diff --git a/source/libr2c2/blockallocator.cpp b/source/libr2c2/blockallocator.cpp index b38b62d..003ffb0 100644 --- a/source/libr2c2/blockallocator.cpp +++ b/source/libr2c2/blockallocator.cpp @@ -192,7 +192,10 @@ void BlockAllocator::reserve_more() } if(!reserve_block(block)) + { + pending_block = &*block; break; + } if(cur_blocks_end==blocks.end()) --cur_blocks_end;