transaction_manager::new_block() must take a validator now

This commit is contained in:
Joe Thornber 2011-11-08 10:41:56 +00:00
parent 8859451df5
commit dedf5edecc
2 changed files with 0 additions and 21 deletions

View File

@ -35,26 +35,6 @@ transaction_manager::begin(block_address superblock, validator v)
return wr;
}
// FIXME: these explicit try/catches are gross
transaction_manager::write_ref
transaction_manager::new_block()
{
block_address b = sm_->new_block();
try {
add_shadow(b);
try {
return bm_->write_lock_zero(b);
} catch (...) {
remove_shadow(b);
throw;
}
} catch (...) {
sm_->dec(b);
throw;
}
}
transaction_manager::write_ref
transaction_manager::new_block(validator v)
{

View File

@ -29,7 +29,6 @@ namespace persistent_data {
write_ref begin(block_address superblock);
write_ref begin(block_address superblock, validator v);
write_ref new_block();
write_ref new_block(validator v);
// shadowing returns a new write_ref, and a boolean which