mirror of
https://github.com/ceph/ceph
synced 2025-01-01 00:22:25 +00:00
mon: Fix ranged-construct warning
In the case of an uint32_t there's no benefit to a reference so just remove the const and make the copy. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
parent
0e1dc03fc5
commit
da789f40cb
@ -899,13 +899,13 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
|
||||
t = MonitorDBStore::TransactionRef();
|
||||
tx_size = 0;
|
||||
}
|
||||
for (const auto [osd, state] : inc.new_state) {
|
||||
for (auto [osd, state] : inc.new_state) {
|
||||
if (state & CEPH_OSD_UP) {
|
||||
// could be marked up *or* down, but we're too lazy to check which
|
||||
last_osd_report.erase(osd);
|
||||
}
|
||||
}
|
||||
for (const auto [osd, weight] : inc.new_weight) {
|
||||
for (auto [osd, weight] : inc.new_weight) {
|
||||
if (weight == CEPH_OSD_OUT) {
|
||||
// manually marked out, so drop it
|
||||
osd_epochs.erase(osd);
|
||||
|
Loading…
Reference in New Issue
Block a user