Skip to content

Commit

Permalink
Corrected spacing from review comments
Browse files Browse the repository at this point in the history
Authors: Myna, Elita
email: <mynaramana@gmail.com>
  • Loading branch information
mynaramana committed Oct 30, 2017
1 parent aa5ad6c commit a6ea055
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/osd/ECUtil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,16 @@ int ECUtil::decode(
int repair_data_per_chunk;
int subchunk_size = sinfo.get_chunk_size()/ec_impl->get_sub_chunk_count();

for(auto i=to_decode.begin();
i != to_decode.end();
++i) {
if(min.find(i->first) == min.end()) continue;
else{
for (auto &&i : to_decode) {
if (min.find(i.first) == min.end()) continue;
else {
int repair_subchunk_count = 0;
for (auto j = min[i->first].begin();
j != min[i->first].end(); ++j) {
for (auto j = min[i.first].begin();
j != min[i.first].end(); ++j) {
repair_subchunk_count += j->second;
}
repair_data_per_chunk = repair_subchunk_count*subchunk_size;
chunks_count = (int) i->second.length() / repair_data_per_chunk;
repair_data_per_chunk = repair_subchunk_count * subchunk_size;
chunks_count = (int)i.second.length() / repair_data_per_chunk;
break;
}
}
Expand Down

0 comments on commit a6ea055

Please sign in to comment.