]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockallocator.cpp
Set pending_block when a block can't be allocated
[r2c2.git] / 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;