[transaction_manager] Add transaction_manager::commit()

It should be called by metadata::commit() and reserve_metadata_snap()
(issue #73)
This commit is contained in:
Ming-Hung Tsai 2020-08-16 16:00:04 +08:00
parent 9f3823c97d
commit de843991e3
2 changed files with 9 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);