]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: clean up completion handlers that set *prval=0 711/head
authorSage Weil <sage@inktank.com>
Thu, 10 Oct 2013 14:10:16 +0000 (07:10 -0700)
committerSage Weil <sage@inktank.com>
Fri, 11 Oct 2013 16:23:10 +0000 (09:23 -0700)
If the OSD operations returns 0, these are unnecessary.  If it does not,
then these are misleading.  In both cases here, the OSD sets the result to
zero, so this has no client-visible change.r

Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/Objecter.h

index 8a6c243d339adf74b8ec2af3b1ff0e2d150f7149..938c97a4f31133c773a6584d4fcc4237e0aad7aa 100644 (file)
@@ -386,7 +386,6 @@ struct ObjectOperation {
               pwatchers->push_back(ow);
             }
           }
-          *prval = 0;
        }
        catch (buffer::error& e) {
          if (prval)
@@ -424,8 +423,6 @@ struct ObjectOperation {
             }
            psnaps->seq = resp.seq;
           }
-          if (prval)
-           *prval = 0;
        }
        catch (buffer::error& e) {
          if (prval)