Skip to content

Commit

Permalink
Rgw: excute the return value when call fe->run()
Browse files Browse the repository at this point in the history
Fixes: #14585
Signed-off-by: wei qiaomiao wei.qiaomiao@zte.com.cn
  • Loading branch information
renhwztetecs committed Feb 1, 2016
1 parent 64fbda8 commit e09b608
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rgw/rgw_main.cc
Expand Up @@ -1271,7 +1271,11 @@ int main(int argc, const char **argv)
derr << "ERROR: failed initializing frontend" << dendl;
return -r;
}
fe->run();
r = fe->run();
if (r < 0) {
derr << "ERROR: failed run" << dendl;
return -r;
}

fes.push_back(fe);
}
Expand Down

0 comments on commit e09b608

Please sign in to comment.