Merge lp://staging/~facundo/ubuntuone-client/lr-udf-not-found into lp://staging/ubuntuone-client
Proposed by
Facundo Batista
Status: | Merged |
---|---|
Approved by: | Tim Cole |
Approved revision: | 442 |
Merged at revision: | not available |
Proposed branch: | lp://staging/~facundo/ubuntuone-client/lr-udf-not-found |
Merge into: | lp://staging/ubuntuone-client |
Diff against target: |
136 lines (+74/-8) 2 files modified
tests/syncdaemon/test_localrescan.py (+37/-1) ubuntuone/syncdaemon/local_rescan.py (+37/-7) |
To merge this branch: | bzr merge lp://staging/~facundo/ubuntuone-client/lr-udf-not-found |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Cole (community) | Approve | ||
Rodrigo Moya (community) | Approve | ||
Review via email: mp+21974@code.staging.launchpad.net |
Commit message
Unsubscribe an UDF when it's not found just before adding inotify watches.
Description of the change
Unsubscribe an UDF when it's not found just before adding inotify watches.
This covers the case of "stopping the client, removing the UDF, starting the client again", that previously provoked infinite LR_SCAN_ERROR loops.
To post a comment you must log in.
Hmm. Not sure that adding an os.access check beforehand covers it. What happens if someone deletes/chmods/etc the directory between the call to os.access but before _add_watches_ to_udf_ ancestors completes? Seems like it would hit the same loop as before.