]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os : remove unused GenericObjectMap::sync() funtion since no caller invoke this function 4757/head
authorxinxin shu <xinxin.shu@intel.com>
Mon, 25 May 2015 00:15:00 +0000 (08:15 +0800)
committerxinxin shu <xinxin.shu@intel.com>
Mon, 25 May 2015 19:38:50 +0000 (03:38 +0800)
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
src/os/GenericObjectMap.cc
src/os/GenericObjectMap.h

index 22590e39ac2e509be905263cf97d4a8336168f61..eae774d86d5f56322f17668cc80c24143b194565 100644 (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;
index 864a06b78230194e885f012517dd7dd63f61aa69..d5979e2456943604cc8ffb9def2095652e5d5c6a 100644 (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;