Merge pull request #1 from zero-gravity-labs/disable_check

Disable write window size check.
This commit is contained in:
peilun-conflux 2024-01-17 10:55:34 +08:00 committed by GitHub
commit 5253436226
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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<()> {
assert!(index >= self.left_boundary);
if index >= self.left_boundary + self.size {
bail!(
"index exceeds window limit, index = {}, left_boundary = {}, window_size = {}",
index,
self.left_boundary,
self.size
);
}
// if index >= self.left_boundary + self.size {
// bail!(
// "index exceeds window limit, index = {}, left_boundary = {}, window_size = {}",
// index,
// self.left_boundary,
// self.size
// );
// }
assert!(!self.slots.contains_key(&index));
self.slots.insert(index, SlotStatus::Writing);

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

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