fix dequeue_many_back

This commit is contained in:
soruh 2023-08-15 01:00:46 +02:00
parent 238b00348e
commit cb908c8198

View File

@ -146,7 +146,7 @@ impl<T: FromBytes + FromZeroes + AsBytes + Unaligned + Clone + Copy> FilePointer
n: u64,
) -> Option<(Self, Vec<T>)> {
let mut res = Vec::with_capacity(n.try_into().unwrap());
self.dequeue_many_inner(transaction, n, |t| res.push(t))
self.dequeue_many_back_inner(transaction, n, |t| res.push(t))
.map(|ptr| {
res.reverse();
(ptr, res)