From 6e15838060f41dbc37e1ccebf6f21d722c7f5ded Mon Sep 17 00:00:00 2001 From: Peilun Li Date: Wed, 10 Jan 2024 17:29:11 +0800 Subject: [PATCH] Disable write window size check. --- .../src/mem_pool/chunk_write_control.rs | 16 ++++++++-------- zerog-storage-client | 2 +- zerog-storage-contracts | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/node/chunk_pool/src/mem_pool/chunk_write_control.rs b/node/chunk_pool/src/mem_pool/chunk_write_control.rs index 6712236..1c05837 100644 --- a/node/chunk_pool/src/mem_pool/chunk_write_control.rs +++ b/node/chunk_pool/src/mem_pool/chunk_write_control.rs @@ -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); diff --git a/zerog-storage-client b/zerog-storage-client index 307f5b1..b926352 160000 --- a/zerog-storage-client +++ b/zerog-storage-client @@ -1 +1 @@ -Subproject commit 307f5b17d178df643dd981d63495bb2c92455f5f +Subproject commit b9263529250ff1e3dde863215c1eb81e58973ff7 diff --git a/zerog-storage-contracts b/zerog-storage-contracts index 171cebf..da8aa6e 160000 --- a/zerog-storage-contracts +++ b/zerog-storage-contracts @@ -1 +1 @@ -Subproject commit 171cebffffdd82bf464dea85539458bcafbd73ef +Subproject commit da8aa6ed92aaf0664855211df9370280543742dc