Merge lp:~xavi-garcia-mena/keeper/sequential-execution-and-valgrind-fixes into lp:keeper
Status: | Merged |
---|---|
Approved by: | Charles Kerr |
Approved revision: | 55 |
Merged at revision: | 55 |
Proposed branch: | lp:~xavi-garcia-mena/keeper/sequential-execution-and-valgrind-fixes |
Merge into: | lp:keeper |
Prerequisite: | lp:~xavi-garcia-mena/keeper/std-sharedptr-qlocalsocket |
Diff against target: |
510 lines (+212/-54) 6 files modified
src/cli/main.cpp (+52/-10) src/helper/backup-helper.cpp (+12/-2) src/service/keeper.cpp (+45/-9) src/storage-framework/storage_framework_client.cpp (+10/-1) src/storage-framework/storage_framework_client.h (+3/-0) tests/integration/helpers/helpers-test.cc (+90/-32) |
To merge this branch: | bzr merge lp:~xavi-garcia-mena/keeper/sequential-execution-and-valgrind-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
Review via email:
|
Commit message
Adds sequential execution of backup helpers.
Description of the change
Adds sequential execution of backup helpers.
Fixes the issue when deleting the "conn" variable in the keeper.cpp file detected with valgrind.
Modified the integration full test to run 2 backup helpers sequentially.
Modified backup_helper when detecting if it already finished.
Now it looks if it finishes when we receive the upstart signal. If we do that when detecting that the number of bytes expected and received from the backup helper match we may start the next backup helper too early, so for example, we were closing the storage-framework twice.
Added QFutureWatcher to wait for the storage framework socket to be closed before starting next task.
Added workaround to modify the number of bytes written right after calling write in the backup helper. The issue is that QlocalSocket:
I also modified the client for testing purposes.
It does a backup of all the XDG folders when passing --use-uuids as the first parameter.
This was really useful when testing keeper-service on the desktop with the upstart untrusted-helper job.