diff --git a/src/osd/ECUtil.cc b/src/osd/ECUtil.cc index 9d2c2fb261e..46a16c379fb 100644 --- a/src/osd/ECUtil.cc +++ b/src/osd/ECUtil.cc @@ -9,11 +9,11 @@ int ECUtil::decode( ErasureCodeInterfaceRef &ec_impl, map &to_decode, bufferlist *out) { + assert(to_decode.size()); uint64_t total_data_size = to_decode.begin()->second.length(); - - assert(to_decode.size()); assert(total_data_size % sinfo.get_chunk_size() == 0); + assert(out); assert(out->length() == 0); @@ -47,10 +47,9 @@ int ECUtil::decode( ErasureCodeInterfaceRef &ec_impl, map &to_decode, map &out) { + assert(to_decode.size()); uint64_t total_data_size = to_decode.begin()->second.length(); - - assert(to_decode.size()); assert(total_data_size % sinfo.get_chunk_size() == 0); for (map::iterator i = to_decode.begin();