Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yrs WebAssembly benchmarks #44

Merged
merged 5 commits into from
Nov 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed block split on DeleteSet application from remote peer
  • Loading branch information
Horusiath committed Nov 12, 2021
commit 1359034c4894c7e5b83693879af70011fd5f4202
6 changes: 2 additions & 4 deletions yrs/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,8 @@ impl<'a> Transaction<'a> {
if let Some(item) = blocks.get_mut(index).as_item_mut() {
// split the first item if necessary
if !item.is_deleted() && item.id.clock < clock {
let split_ptr = BlockPtr::new(
ID::new(*client, clock - item.id.clock),
index as u32,
);
let split_ptr =
BlockPtr::new(ID::new(*client, clock), index as u32);
let (_, right) = self.store.blocks.split_block(&split_ptr);
if let Some(right) = right {
index += 1;
Expand Down