[transaction_manager] Add transaction_manager::commit()
It should be called by metadata::commit() and reserve_metadata_snap() (issue #73)
This commit is contained in:
parent
9f3823c97d
commit
de843991e3
@ -37,6 +37,13 @@ transaction_manager::~transaction_manager()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
transaction_manager::commit()
|
||||
{
|
||||
wipe_shadow_table();
|
||||
bm_->flush();
|
||||
}
|
||||
|
||||
transaction_manager::write_ref
|
||||
transaction_manager::begin(block_address superblock, validator v)
|
||||
{
|
||||
|
@ -42,6 +42,8 @@ namespace persistent_data {
|
||||
space_map::ptr sm);
|
||||
~transaction_manager();
|
||||
|
||||
void commit();
|
||||
|
||||
// Drop the superblock reference to commit
|
||||
write_ref begin(block_address superblock, validator v);
|
||||
write_ref new_block(validator v);
|
||||
|
Loading…
Reference in New Issue
Block a user