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

Check reading from journal was successful before remove placeholder #3028

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

FlexW
Copy link

@FlexW FlexW commented Mar 23, 2021

Signed-off-by: Felix Weilbach felix.weilbach@nextcloud.com

@FlexW
Copy link
Author

FlexW commented Mar 24, 2021

/rebase

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
@github-actions github-actions bot force-pushed the bugfix/check-db-read-successful-on-hydration-canceled branch from e1ece7d to d78774f Compare March 24, 2021 10:51
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-3028-d78774f29e9bb52efd057ecf7b97db20063fde94-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@FlexW FlexW merged commit 6a53491 into master Mar 24, 2021
@FlexW FlexW deleted the bugfix/check-db-read-successful-on-hydration-canceled branch March 24, 2021 11:25
const auto folderRelativePath = job->folderPath();
SyncJournalFileRecord record;
if (!params().journal->getFileRecord(folderRelativePath, &record)) {
Copy link
Member

Choose a reason for hiding this comment

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

In fact you want to check that and the isValid flag on the record:

SyncJournalFileRecord record;
const auto ok = params().journal->getFileRecord(folderRelativePath, &record);
if (!ok || !record.isValid()) {

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.

4 participants