]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "osdc: After write try merge bh." 11262/head
authorJohn Spray <john.spray@redhat.com>
Tue, 13 Sep 2016 13:37:56 +0000 (19:07 +0530)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 11:29:44 +0000 (12:29 +0100)
This reverts commit 1a48a8a2b222e41236341cb1241f0885a1b0b9d8.

Fixes: http://tracker.ceph.com/issues/17270
Signed-off-by: John Spray <john.spray@redhat.com>
src/osdc/ObjectCacher.cc

index ceec7a1224ee93ff479444341e45c408d7c0322a..bdaf0f806a9aa46190bca571450dfba4af8b2afe 100644 (file)
@@ -1114,7 +1114,6 @@ void ObjectCacher::bh_write_commit(int64_t poolid, sobject_t oid,
       }
     }
 
-    list <BufferHead*> hit;
     // apply to bh's!
     for (map<loff_t, BufferHead*>::const_iterator p = ob->data_lower_bound(start);
         p != ob->data.end();
@@ -1149,7 +1148,6 @@ void ObjectCacher::bh_write_commit(int64_t poolid, sobject_t oid,
        bh->set_journal_tid(0);
        if (bh->get_nocache())
          bh_lru_rest.lru_bottouch(bh);
-       hit.push_back(bh);
        ldout(cct, 10) << "bh_write_commit clean " << *bh << dendl;
       } else {
        mark_dirty(bh);
@@ -1158,13 +1156,6 @@ void ObjectCacher::bh_write_commit(int64_t poolid, sobject_t oid,
                       << dendl;
       }
     }
-
-    for (list<BufferHead*>::iterator bh = hit.begin();
-       bh != hit.end();
-       ++bh) {
-      assert(*bh);
-      ob->try_merge_bh(*bh);
-    }
   }
 
   // update last_commit.