]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: remove unused mark_object_lost()
authorJosh Durgin <jdurgin@redhat.com>
Sat, 21 May 2016 01:11:39 +0000 (18:11 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 9 Jul 2016 01:33:12 +0000 (18:33 -0700)
The only caller was removed in e7edf20fb7264bfaeeb30ac0185e9edc925878b6

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index 00232aeda570f2680264faddb6653076c393018b..b35413127b4c03534bb325fd8db18922246d9ba4 100644 (file)
@@ -9643,42 +9643,6 @@ eversion_t ReplicatedPG::pick_newest_available(const hobject_t& oid)
   return v;
 }
 
-
-/* Mark an object as lost
- */
-ObjectContextRef ReplicatedPG::mark_object_lost(ObjectStore::Transaction *t,
-                                                           const hobject_t &oid, eversion_t version,
-                                                           utime_t mtime, int what)
-{
-  // Wake anyone waiting for this object. Now that it's been marked as lost,
-  // we will just return an error code.
-  map<hobject_t, list<OpRequestRef>, hobject_t::BitwiseComparator>::iterator wmo =
-    waiting_for_unreadable_object.find(oid);
-  if (wmo != waiting_for_unreadable_object.end()) {
-    requeue_ops(wmo->second);
-  }
-
-  // Add log entry
-  ++info.last_update.version;
-  pg_log_entry_t e(what, oid, info.last_update, version, 0, osd_reqid_t(), mtime);
-  pg_log.add(e);
-  
-  ObjectContextRef obc = get_object_context(oid, true);
-
-  obc->ondisk_write_lock();
-
-  obc->obs.oi.set_flag(object_info_t::FLAG_LOST);
-  obc->obs.oi.version = info.last_update;
-  obc->obs.oi.prior_version = version;
-
-  bufferlist b2;
-  obc->obs.oi.encode(b2, get_osdmap()->get_up_osd_features());
-  assert(!pool.info.require_rollback());
-  t->setattr(coll, ghobject_t(oid), OI_ATTR, b2);
-
-  return obc;
-}
-
 void ReplicatedPG::do_update_log_missing(OpRequestRef &op)
 {
   MOSDPGUpdateLogMissing *m = static_cast<MOSDPGUpdateLogMissing*>(
index fbf5ce1faa78ab390d261d6e9e043f923c6eacee..e0635996c14843f65bd40d13b107fd0c3eb8ae64 100644 (file)
@@ -1625,9 +1625,6 @@ public:
     ConnectionRef con,
     ceph_tid_t tid);
   eversion_t pick_newest_available(const hobject_t& oid);
-  ObjectContextRef mark_object_lost(ObjectStore::Transaction *t,
-                                 const hobject_t& oid, eversion_t version,
-                                 utime_t mtime, int what);
 
   void do_update_log_missing(
     OpRequestRef &op);