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

test

parent d0404a4d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -652,8 +652,7 @@ bool client::retrieve_stripe(uint64_t group_id, uint32_t stripe_index,

    if (fetched.empty()) return false;
    if (fetched.size() < k_) {
        throw std::runtime_error("retrieve_stripe: not enough blocks ("
                                 + std::to_string(fetched.size()) + " < " + std::to_string(k_) + ")");
        return false;  // partial blocks — data not fully replicated yet
    }

    // Check if all data blocks present (first k nodes)