]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: rename debug_delete_obj to debug_obj_on_delete
authorSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 23:16:13 +0000 (16:16 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 23:27:34 +0000 (16:27 -0700)
This should make the method intent less confusing.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc
src/os/FileStore.h

index c3a0cd852f20465641fcb59d4a4788c4c7724ba7..9d393022f1475a4e2bd6407d169a4ddc650a458c 100644 (file)
@@ -352,7 +352,7 @@ int FileStore::lfn_unlink(coll_t cid, const hobject_t& o,
        return r;
       }
       if (g_conf->filestore_debug_inject_read_err) {
-       debug_delete_obj(o);
+       debug_obj_on_delete(o);
       }
     } else {
       /* Ensure that replay of this op doesn't result in the object_map
@@ -3807,7 +3807,7 @@ void FileStore::inject_mdata_error(const hobject_t &oid) {
   dout(10) << __func__ << ": init error on " << oid << dendl;
   mdata_error_set.insert(oid);
 }
-void FileStore::debug_delete_obj(const hobject_t &oid) {
+void FileStore::debug_obj_on_delete(const hobject_t &oid) {
   Mutex::Locker l(read_error_lock);
   dout(10) << __func__ << ": clear error on " << oid << dendl;
   data_error_set.erase(oid);
index b73f2ad3f0cd4361ff65e62db991e87e2f48e49c..ebe022561a54bfa94b19a9c08aa40fc6a5225498 100644 (file)
@@ -418,7 +418,7 @@ public:
   set<hobject_t> mdata_error_set; // getattr(),stat() will return -EIO
   void inject_data_error(const hobject_t &oid);
   void inject_mdata_error(const hobject_t &oid);
-  void debug_delete_obj(const hobject_t &oid);
+  void debug_obj_on_delete(const hobject_t &oid);
   bool debug_data_eio(const hobject_t &oid);
   bool debug_mdata_eio(const hobject_t &oid);