Skip to content

Commit

Permalink
mon/PGMonitor: move fsid check ahead
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 May 31, 2016
1 parent d9a69b8 commit 3d17c23
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/mon/PGMonitor.cc
Expand Up @@ -621,15 +621,18 @@ void PGMonitor::handle_statfs(MonOpRequestRef op)
<< session->caps << dendl;
return;
}
MStatfsReply *reply;

dout(10) << "handle_statfs " << *statfs << " from " << statfs->get_orig_source() << dendl;

if (statfs->fsid != mon->monmap->fsid) {
dout(0) << "handle_statfs on fsid " << statfs->fsid << " != " << mon->monmap->fsid << dendl;
dout(0) << "handle_statfs on fsid " << statfs->fsid
<< " != " << mon->monmap->fsid << dendl;
return;
}

MStatfsReply *reply;

dout(10) << "handle_statfs " << *statfs
<< " from " << statfs->get_orig_source() << dendl;

// fill out stfs
reply = new MStatfsReply(mon->monmap->fsid, statfs->get_tid(), get_last_committed());

Expand Down

0 comments on commit 3d17c23

Please sign in to comment.