Skip to content

Commit

Permalink
Merge pull request ceph#7457 from weiqiaomiao/w1
Browse files Browse the repository at this point in the history
Rgw: check the return value when call fe->run()

Reviewed-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
yehudasa committed Feb 18, 2016
2 parents 210b075 + 8c7261b commit 3687a0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rgw/rgw_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,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 3687a0d

Please sign in to comment.