Commit 54e839ad authored by Andreas Schmidt's avatar Andreas Schmidt

Fix cleanup indexing.

parent 2447de48
Pipeline #2795 failed with stages
in 1 minute and 26 seconds
......@@ -176,9 +176,9 @@ void PrrtPacketDeliveryStore_cleanup(PrrtPacketDeliveryStore *store, prrtTimesta
BPTree_get_range(store->tree, packetList, now + TIMESTAMP_SPACE/2, TIMESTAMP_SPACE);
}
while (List_count(packetList) > 0) {
PrrtPacket *block = List_shift(packetList);
store->tree = BPTree_delete(store->tree, block->sequenceNumber);
PrrtPacket_destroy(block);
PrrtPacket *packet = List_shift(packetList);
store->tree = BPTree_delete(store->tree, PrrtDataPacket_packet_timeout(packet));
PrrtPacket_destroy(packet);
}
List_destroy(packetList);
check(pthread_mutex_unlock(&store->lock) == EXIT_SUCCESS, "Unlock failed.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment