Skip to content

Commit

Permalink
OSD: update heartbeat peers if unable to statfs
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Feb 19, 2016
1 parent 8b79c33 commit dfa4c86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/OSD.cc
Expand Up @@ -673,6 +673,8 @@ void OSDService::update_osd_stat(vector<int>& hb_peers)
int r = osd->store->statfs(&stbuf);
if (r < 0) {
derr << "statfs() failed: " << cpp_strerror(r) << dendl;
osd_stat.hb_in.swap(hb_peers);
osd_stat.hb_out.clear();
return;
}

Expand Down

0 comments on commit dfa4c86

Please sign in to comment.