]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: handle ECANCELED in C_CopyFrom, C_Flush
authorSage Weil <sage@inktank.com>
Thu, 12 Dec 2013 23:05:06 +0000 (15:05 -0800)
committerSage Weil <sage@inktank.com>
Fri, 20 Dec 2013 00:39:59 +0000 (16:39 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 823181374435bc3229b273d5e88de48bb4dedd0e..dbc172f298fd1c0aa0bf90a5e500b50233d6ff5b 100644 (file)
@@ -4548,6 +4548,8 @@ struct C_Copyfrom : public Context {
       tid(0)
   {}
   void finish(int r) {
+    if (r == -ECANCELED)
+      return;
     pg->lock();
     if (last_peering_reset == pg->get_last_peering_reset()) {
       pg->process_copy_chunk(oid, tid, r);
@@ -4964,6 +4966,8 @@ struct C_Flush : public Context {
       tid(0)
   {}
   void finish(int r) {
+    if (r == -ECANCELED)
+      return;
     pg->lock();
     if (last_peering_reset == pg->get_last_peering_reset()) {
       pg->finish_flush(oid, tid, r);