]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_frontend:A negative value should be returned when exec 'init()' fails, otherw... 16204/head
authorjimifm <hong.zhangoole@gmail.com>
Fri, 7 Jul 2017 07:31:56 +0000 (15:31 +0800)
committerjimifm <hong.zhangoole@gmail.com>
Fri, 7 Jul 2017 07:31:56 +0000 (15:31 +0800)
Signed-off-by: jimifm <hong.zhangoole@gmail.com>
src/rgw/rgw_frontend.h

index 1c999b4d68fe4cfa77faef800d0ffd6785468e06..a9fe707833c30227aa88cc9f75c2303994ffbaa6 100644 (file)
@@ -213,7 +213,7 @@ public:
     if (uid_str.empty()) {
       derr << "ERROR: uid param must be specified for loadgen frontend"
           << dendl;
-      return EINVAL;
+      return -EINVAL;
     }
 
     rgw_user uid(uid_str);