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

SyncEngine: Fix detection of backup or full resync #5104

Merged
merged 1 commit into from Aug 4, 2016
Merged

Conversation

ogoffart
Copy link
Contributor

@ogoffart ogoffart commented Aug 4, 2016

Once upon a time, the SyncEngine was instantiated once per sync. But now that the SyncEngine is kept between sync, we need to reset all these variable between syncs.

@CLAassistant
Copy link

CLAassistant commented Aug 4, 2016

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

@ogoffart
Copy link
Contributor Author

ogoffart commented Aug 4, 2016

Does that go into 2.2.3 ?

@@ -681,6 +681,10 @@ void SyncEngine::startSync()
s_anySyncRunning = true;
_syncRunning = true;
_anotherSyncNeeded = false;
_hasNoneFiles = false;
_hasRemoveFile = false;
Copy link
Member

Choose a reason for hiding this comment

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

Those two are already reset in slotDiscoveryJobFinished

@jturcotte
Copy link
Member

If you think this should go in 2.2.3, we should make sure that we give some time for the RC to be used by people, and we should do extra QA for it. We shouldn't just put land the patch and release the day after I think.

@guruz
Copy link
Contributor

guruz commented Aug 4, 2016

OK let's have it in 2.2.3 and make a rc tomorrow..

@guruz guruz added this to the 2.2.3 milestone Aug 4, 2016
@guruz guruz added the sev2-high label Aug 4, 2016
Once upon a time, the SyncEngine was instantiated once per sync. But now that
the SyncEngine is kept between sync, we need to reset all these variable between
syncs.
@jturcotte
Copy link
Member

👍

@guruz
Copy link
Contributor

guruz commented Aug 4, 2016

👍 from me.

@guruz guruz merged commit 4a7f3cb into 2.2 Aug 4, 2016
@guruz guruz deleted the backup-restore branch August 4, 2016 14:06
@guruz
Copy link
Contributor

guruz commented Aug 4, 2016

@davitol FYI nightlies should have it

@davitol
Copy link

davitol commented Aug 5, 2016

@guruz @ogoffart Tested and works fine, Great job 💃

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.

None yet

5 participants