diff options
Diffstat (limited to 'src/wal.rs')
-rw-r--r-- | src/wal.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -255,6 +255,9 @@ impl<F: WALStore> WALFilePool<F> { &'a mut self, writes: Vec<(WALPos, WALBytes)>, ) -> Vec<Pin<Box<dyn Future<Output = Result<(), ()>> + 'a>>> { + if writes.is_empty() { + return Vec::new() + } let file_size = self.file_size; let file_nbit = self.file_nbit; let meta: Vec<(u64, u64)> = writes |