From d7aad495f66794cf4415f6695c639ab80a6725f4 Mon Sep 17 00:00:00 2001 From: jimifm Date: Fri, 7 Jul 2017 15:31:56 +0800 Subject: [PATCH] rgw/rgw_frontend:A negative value should be returned when exec 'init()' fails, otherwise the program will continue to run Signed-off-by: jimifm --- src/rgw/rgw_frontend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3