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

Record write descriptions #460

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Record write descriptions #460

merged 1 commit into from
Jan 5, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented Jan 4, 2023

Adds a new type similar to RecordWriteOp: RecordWriteDescript which includes relevant CIDs to the operation.

Generally "ops" are used when making a change. "descripts" are used when syncing a change.

Alongside this, commit-aware sync methods now return a WriteLog which is RecordWriteDescript[][] which can then be collapsed down into a single array of all writes that occurred over that range

Motivated by #444 (comment)

@dholms dholms mentioned this pull request Jan 4, 2023
Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

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

Yesss, excellent.

@pfrazee
Copy link
Collaborator

pfrazee commented Jan 5, 2023

Nice

Base automatically changed from repo-checkout to sync-revamp January 5, 2023 16:37
@dholms dholms merged commit c3dc0b3 into sync-revamp Jan 5, 2023
@dholms dholms deleted the record-write-descripts branch January 5, 2023 16:38
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.

None yet

3 participants