From: xinxin shu Date: Mon, 25 May 2015 00:15:00 +0000 (+0800) Subject: os : remove unused GenericObjectMap::sync() funtion since no caller invoke this function X-Git-Tag: v9.0.2~119^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4757%2Fhead;p=ceph.git os : remove unused GenericObjectMap::sync() funtion since no caller invoke this function Signed-off-by: xinxin shu --- diff --git a/src/os/GenericObjectMap.cc b/src/os/GenericObjectMap.cc index 22590e39ac2e..eae774d86d5f 100644 --- a/src/os/GenericObjectMap.cc +++ b/src/os/GenericObjectMap.cc @@ -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; diff --git a/src/os/GenericObjectMap.h b/src/os/GenericObjectMap.h index 864a06b78230..d5979e245694 100644 --- a/src/os/GenericObjectMap.h +++ b/src/os/GenericObjectMap.h @@ -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;