From: jimifm Date: Fri, 7 Jul 2017 07:31:56 +0000 (+0800) Subject: rgw/rgw_frontend:A negative value should be returned when exec 'init()' fails, otherw... X-Git-Tag: v12.1.1~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7aad495f66794cf4415f6695c639ab80a6725f4;p=ceph.git rgw/rgw_frontend:A negative value should be returned when exec 'init()' fails, otherwise the program will continue to run Signed-off-by: jimifm --- diff --git a/src/rgw/rgw_frontend.h b/src/rgw/rgw_frontend.h index 1c999b4d68fe..a9fe707833c3 100644 --- a/src/rgw/rgw_frontend.h +++ b/src/rgw/rgw_frontend.h @@ -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);