Merge pull request #52714 from cbodley/wip-ec-clay-unit

ec: initialize lost_chunk in ErasureCodeClay

Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Casey Bodley 2023-08-02 18:43:06 -04:00 committed by GitHub
commit 51a2343187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,7 @@ int ErasureCodeClay::repair_one_lost_chunk(map<int, bufferlist> &recovered_data,
}
}
int lost_chunk;
int lost_chunk = 0;
int count = 0;
for ([[maybe_unused]] auto& [node, bl] : recovered_data) {
lost_chunk = node;