mirror of
https://github.com/ceph/ceph
synced 2025-03-21 17:57:38 +00:00
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:
commit
e805b944b9
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user