mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
Merge pull request #1 from zero-gravity-labs/disable_check
Disable write window size check.
This commit is contained in:
commit
5253436226
@ -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
|
Loading…
Reference in New Issue
Block a user