Merge pull request #4757 from xinxinsh/wip-kv-cleanup

os : remove GenericObjectMap::sync() function

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
This commit is contained in:
Haomai Wang 2015-05-26 11:57:10 +08:00
commit e805b944b9
2 changed files with 0 additions and 12 deletions

View File

@ -734,15 +734,6 @@ int GenericObjectMap::init(bool do_upgrade)
return 0;
}
int GenericObjectMap::sync(const Header header, KeyValueDB::Transaction t)
{
write_state(t);
if (header) {
set_header(header->cid, header->oid, *header, t);
}
return 0;
}
bool GenericObjectMap::check(std::ostream &out)
{
bool retval = true;

View File

@ -260,9 +260,6 @@ class GenericObjectMap {
KeyValueDB::Transaction t
);
/// Ensure that all previous operations are durable
int sync(const Header header, KeyValueDB::Transaction t);
static const string GLOBAL_STATE_KEY;
static const string PARENT_KEY;