mirror of
https://github.com/ceph/ceph
synced 2025-03-31 07:53:23 +00:00
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:
commit
e08022f566
@ -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) {
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user