Skip to content

fix(sync): fix incremental sync compilation errors - #2

Merged
GetLogBy merged 1 commit into
mainfrom
dev
Aug 14, 2026
Merged

GetLogBy merged 1 commit into
mainfrom
dev

Conversation

@GetLogBy

Copy link
Copy Markdown
Owner

No description provided.

@GetLogBy
GetLogBy merged commit a651f40 into main Aug 14, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1bb7f1d03

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
}

fun String.sha1Encode(): String = MD5Utils.sha1Encode(this)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use a dedicated SHA-1 digester

When incremental sync calls this extension on a thread that has already used MD5Utils.md5Encode, it returns an MD5 digest instead of SHA-1 because MD5Digester and SHA1Digester share the same ThreadLocal<Digester>. Since the sync client uses this value for WebDAV filenames, different threads/devices can write and look up different names for the same record, causing missed pulls or duplicate cloud entries; keep separate thread-local digesters or instantiate SHA-1 independently here.

Useful? React with 👍 / 👎.

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.

1 participant