transaction_manager::new_block() must take a validator now
This commit is contained in:
parent
8859451df5
commit
dedf5edecc
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user