Skip to content

Commit 363cc21

Browse files
authored
Merge pull request ceph#58703 from kshtsk/wip-fix-unused-in-erasure-code
erasure-code/clay: cleanup unused but set variable
2 parents 4adc795 + 4990864 commit 363cc21

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/erasure-code/clay/ErasureCodeClay.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ int ErasureCodeClay::repair_one_lost_chunk(map<int, bufferlist> &recovered_data,
478478
int z_vec[t];
479479
map<int, set<int> > ordered_planes;
480480
map<int, int> repair_plane_to_ind;
481-
int count_retrieved_sub_chunks = 0;
482481
int plane_ind = 0;
483482

484483
bufferptr buf(buffer::create_aligned(sub_chunksize, SIMD_ALIGN));
@@ -622,7 +621,6 @@ int ErasureCodeClay::repair_one_lost_chunk(map<int, bufferlist> &recovered_data,
622621
memcpy(&coupled_chunk[z*sub_chunksize],
623622
&uncoupled_chunk[z*sub_chunksize],
624623
sub_chunksize);
625-
count_retrieved_sub_chunks++;
626624
} else {
627625
ceph_assert(y == lost_chunk / q);
628626
ceph_assert(node_sw == lost_chunk);

0 commit comments

Comments
 (0)