]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
objecter: fix ack vs safe behavior
authorSage Weil <sage@newdream.net>
Wed, 31 Dec 2008 19:20:29 +0000 (11:20 -0800)
committerSage Weil <sage@newdream.net>
Wed, 31 Dec 2008 19:20:29 +0000 (11:20 -0800)
This was totally broken (ack was taken as a safe).  Doh!

src/osdc/Objecter.cc

index d97f5fbb7a6bad83005425bd9799044984a84dac..089d2b3072be950e98868602f373922f1f1ef66f 100644 (file)
@@ -595,7 +595,7 @@ void Objecter::handle_osd_modify_reply(MOSDOpReply *m)
     wr->onack = 0;  // only do callback once
     num_unacked--;
   }
-  if (wr->oncommit) {
+  if (wr->oncommit && m->is_ondisk()) {
     dout(15) << "handle_osd_modify_reply safe" << dendl;
     oncommit = wr->oncommit;
     wr->oncommit = 0;