Skip to content

Remove unused code from UploadInfo - #637

Merged
TheOneRing merged 1 commit into
mainfrom
work/upload_info
Nov 4, 2025
Merged

TheOneRing merged 1 commit into
mainfrom
work/upload_info

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

No description provided.

@TheOneRing
TheOneRing requested a review from Copilot November 3, 2025 16:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes chunked upload tracking fields from the UploadInfo structure, simplifying the upload information stored in the sync journal database. The changes eliminate fields that were previously used for tracking chunked upload state (_chunk, _transferid, _errorCount) and the associated error-handling logic.

  • Removed _chunk, _transferid, and _errorCount fields from SyncJournalDb::UploadInfo struct
  • Deleted checkResettingErrors() method and its error-counting mechanism for handling repeated upload failures
  • Updated database queries and schema to reflect the simplified UploadInfo structure

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/libsync/common/syncjournaldb.h Removed chunked upload tracking fields from UploadInfo struct and deleted isChunked() method
src/libsync/common/syncjournaldb.cpp Updated database schema, queries, and equality operator to work with simplified UploadInfo structure
src/libsync/propagateupload.h Removed declaration of checkResettingErrors() method
src/libsync/propagateupload.cpp Deleted checkResettingErrors() implementation and its invocation in error handling
src/libsync/propagateuploadv1.cpp Removed manual initialization of removed fields when storing upload info
test/testsyncjournaldb.cpp Updated test to remove initialization of deleted UploadInfo fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/libsync/common/syncjournaldb.cpp Resolved
Comment thread src/libsync/common/syncjournaldb.cpp Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants