Merge pull request #10231 from yonghengdexin735/wip-zzz-paxosserver-type

mon/PaxosService: make the return value type inconsistent

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Yuri Weinstein 2016-08-01 14:25:27 -07:00 committed by GitHub
commit e08022f566
3 changed files with 3 additions and 3 deletions

View File

@ -1841,7 +1841,7 @@ bool OSDMonitor::prepare_failure(MonOpRequestRef op)
if (m->if_osd_failed()) {
// add a report
mon->clog->debug() << m->get_target() << " reported failed by "
<< m->get_orig_source_inst() << "\n";
<< m->get_orig_source_inst() << "\n";
failure_info_t& fi = failure_info[target_osd];
MonOpRequestRef old_op = fi.add_report(reporter, failed_since, op);
if (old_op) {

View File

@ -207,7 +207,7 @@ bool PaxosService::should_stash_full()
*/
return (!latest_full ||
(latest_full <= get_trim_to()) ||
(get_last_committed() - latest_full > (unsigned)g_conf->paxos_stash_full_interval));
(get_last_committed() - latest_full > (version_t)g_conf->paxos_stash_full_interval));
}
void PaxosService::restart()

View File

@ -377,7 +377,7 @@ static int do_copy_pool(Rados& rados, const char *src_pool, const char *target_p
if (locator.size())
src_name += "(@" + locator + ")";
cout << src_pool << ":" << src_name << " => "
<< target_pool << ":" << target_name << std::endl;
<< target_pool << ":" << target_name << std::endl;
src_ctx.locator_set_key(locator);
src_ctx.set_namespace(nspace);