Disable write window size check.

This commit is contained in:
Peilun Li 2024-01-10 17:29:11 +08:00
parent 9058467be1
commit 6e15838060
3 changed files with 10 additions and 10 deletions

View File

@ -41,14 +41,14 @@ impl CtrlWindow {
fn start_writing(&mut self, index: usize) -> Result<()> { fn start_writing(&mut self, index: usize) -> Result<()> {
assert!(index >= self.left_boundary); assert!(index >= self.left_boundary);
if index >= self.left_boundary + self.size { // if index >= self.left_boundary + self.size {
bail!( // bail!(
"index exceeds window limit, index = {}, left_boundary = {}, window_size = {}", // "index exceeds window limit, index = {}, left_boundary = {}, window_size = {}",
index, // index,
self.left_boundary, // self.left_boundary,
self.size // self.size
); // );
} // }
assert!(!self.slots.contains_key(&index)); assert!(!self.slots.contains_key(&index));
self.slots.insert(index, SlotStatus::Writing); self.slots.insert(index, SlotStatus::Writing);

@ -1 +1 @@
Subproject commit 307f5b17d178df643dd981d63495bb2c92455f5f Subproject commit b9263529250ff1e3dde863215c1eb81e58973ff7

@ -1 +1 @@
Subproject commit 171cebffffdd82bf464dea85539458bcafbd73ef Subproject commit da8aa6ed92aaf0664855211df9370280543742dc