]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix typo(from ECANCELLED to ECANCELED)
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 2 Aug 2016 05:56:44 +0000 (13:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 2 Aug 2016 22:21:07 +0000 (06:21 +0800)
According to Linux Man pages:

  ECANCELED       Operation canceled (POSIX.1)

So ECANCELED is the preferred one.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/ReplicatedPG.h

index d1f2a3f141fbe9f6eea326563b7db4aa9a6c98af..6f5424f66104ad645641ae678a1f4c69a4670e51 100644 (file)
@@ -176,7 +176,7 @@ public:
   protected:
     CopyCallback() {}
     /**
-     * results.get<0>() is the return code: 0 for success; -ECANCELLED if
+     * results.get<0>() is the return code: 0 for success; -ECANCELED if
      * the operation was cancelled by the local OSD; -errno for other issues.
      * results.get<1>() is a pointer to a CopyResults object, which you are
      * responsible for deleting.