]> git.tdb.fi Git - r2c2.git/commitdiff
Set pending_block when a block can't be allocated
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Jun 2013 19:09:28 +0000 (22:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Jun 2013 19:09:28 +0000 (22:09 +0300)
This got accientally removed in dda1e6c

source/libr2c2/blockallocator.cpp

index b38b62d6d1f1cd37763fcb2c3979dff8d4e97439..003ffb0dcf44a9ab5c141370667ce7a9c16b5f0a 100644 (file)
@@ -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;