Skip to content

Commit

Permalink
MDSMon: silence unable to load metadata
Browse files Browse the repository at this point in the history
  silence unable to load metadata

Signed-off-by: Song Shun <song.shun3@zte.com.cn>
  • Loading branch information
shun-s committed Dec 24, 2018
1 parent e0d538d commit 05fa1fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mon/MDSMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,9 @@ int MDSMonitor::load_metadata(map<mds_gid_t, Metadata>& m)
bufferlist bl;
int r = mon->store->get(MDS_METADATA_PREFIX, "last_metadata", bl);
if (r) {
dout(1) << "Unable to load 'last_metadata'" << dendl;
if (r != -ENOENT) {
dout(1) << "Unable to load 'last_metadata'" << dendl;
}
return r;
}

Expand Down

0 comments on commit 05fa1fb

Please sign in to comment.