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

cleanup: get rid of unnecessary markbufferdirty and field #106

Merged
merged 1 commit into from
Sep 3, 2023
Merged

cleanup: get rid of unnecessary markbufferdirty and field #106

merged 1 commit into from
Sep 3, 2023

Conversation

yoloVoe
Copy link
Contributor

@yoloVoe yoloVoe commented Sep 3, 2023

This commit does 3 things:

  • Get rid of index_rel from ExtraDirtiedBufs as it's not used
  • Rename ExtraDirtiedBufs fields to be lower case instead of upper case. Based on Narek, they were upper case before to indicate they could only be touched/modified once across all threads (i.e. the variables were global)
  • Get rid of unnecessary MarkBufferDirty. In cases where a buffer is tracked by xlog, GenericXLogFinish will call MarkBufferDirty so we don't need to call it ourselves. Source

@yoloVoe
Copy link
Contributor Author

yoloVoe commented Sep 3, 2023

Looking at test failure.

This commit does 3 things:
- Get rid of index_rel from ExtraDirtiedBufs as it's not used
- Rename ExtraDirtiedBufs fields to be lower case instead of upper case.
  Based on Narek, they were upper case before to indicate they could only
  be touched/modified once across all threads (i.e. the variables were global)
- Get rid of unnecessary MarkBufferDirty. In cases where a buffer is tracked by
  xlog, GenericXLogFinish will call MarkBufferDirty so we don't need to call it
  ourselves.
@var77
Copy link
Collaborator

var77 commented Sep 3, 2023

Looking at test failure.

Hi @yoloVoe , the test failure was caused as we have replaced the usearch index files with newer versions under the same url, which were being used in an existing tests with old usearch version. This should be fixed now, sorry for inconvenience.

@yoloVoe
Copy link
Contributor Author

yoloVoe commented Sep 3, 2023

Ah, I see. Thanks for the update!

@Ngalstyan4 Ngalstyan4 merged commit 5f06d80 into lanterndata:main Sep 3, 2023
@yoloVoe yoloVoe deleted the small_fixes branch September 3, 2023 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants