Commit bd193286 authored by jan.koester's avatar jan.koester
Browse files

test

parent 40273632
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -303,8 +303,11 @@ void client::store_stripe(uint64_t group_id, uint32_t stripe_index,
    std::vector<uint8_t> padded(STRIPE_SIZE, 0);
    std::memcpy(padded.data(), stripe_data, std::min(stripe_len, STRIPE_SIZE));

    std::cerr << "[PARITY] store_stripe: splitting k=" << k_ << std::endl;
    auto sub_blocks = parity::split(padded.data(), STRIPE_SIZE, k_);
    std::cerr << "[PARITY] store_stripe: encoding parity m=" << m_ << std::endl;
    auto parity_blocks = parity_engine_.encode(sub_blocks);
    std::cerr << "[PARITY] store_stripe: parity done, n=" << (k_ + m_) << std::endl;

    size_t n = k_ + m_;