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

Remove the use of GlobalKey #8015

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Aug 30, 2024

We no longer support syncing tables without primary key, so this can be removed. However the management of tombstones did somewhat rely on this, so a more primitive approach where we just make a linear search for potential tombstone that must be revived. This is of course slow, but since this in on the local_only branch, tombstones are only used in some copy operation.

What, How & Why?

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

We no longer support syncing tables without primary key, so this can be
removed. However the management of tombstones did somewhat rely on this,
so a more primitive approach where we just make a linear search for
potential tombstone that must be revived. This is  of course slow, but
since this in on the local_only branch, tombstones are only used in some
copy operation.
@cla-bot cla-bot bot added the cla: yes label Aug 30, 2024
@jedelbo jedelbo marked this pull request as ready for review August 30, 2024 11:51
object_id = allocate_object_id_squeezed();
key = object_id.get_local_key(get_sync_file_id());
}
if (auto repl = get_repl())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a bug before? (i.e, the instruction was replicated only if the key was null)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could say it was a bug, but calling with a specific key was only used in testing.

@jedelbo jedelbo merged commit 21ab7ab into feature/local-only Sep 3, 2024
44 of 48 checks passed
@jedelbo jedelbo deleted the je/remove-global-key branch September 3, 2024 06:56
@github-actions github-actions bot mentioned this pull request Sep 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants