Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mds,mon: Clean issues detected by cppcheck #13199

Merged
merged 1 commit into from
Feb 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mds/MDLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,9 @@ void MDLog::_reformat_journal(JournalPointer const &jp_in, Journaler *old_journa
if (le->get_type() == EVENT_SUBTREEMAP
|| le->get_type() == EVENT_SUBTREEMAP_TEST) {
ESubtreeMap *sle = dynamic_cast<ESubtreeMap*>(le);
assert(sle != NULL);
dout(20) << __func__ << " zeroing expire_pos in subtreemap event at "
<< le_pos << " seq=" << sle->event_seq << dendl;
assert(sle != NULL);
sle->expire_pos = 0;
modified = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mon/MDSMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2618,11 +2618,11 @@ void MDSMonitor::check_sub(Subscription *sub)
mds_map = &(fsmap.filesystems.at(fscid)->mds_map);
}

assert(mds_map != nullptr);
dout(10) << __func__ << " selected MDS map epoch " <<
mds_map->epoch << " for namespace " << fscid << " for subscriber "
<< sub->session->inst.name << " who wants epoch " << sub->next << dendl;

assert(mds_map != nullptr);
if (sub->next > mds_map->epoch) {
return;
}
Expand Down