David Stainton
|
38dd49ee5a
|
Add logging for Downloader.stop.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
b4153659d3
|
Minor cleanup and logging fix.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
5380ff8f5a
|
Clean up queue loging and add a clock advance in unit test
not yet working
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e1822c0518
|
WIP
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
96b846f762
|
Add ignore pending argument to _periodic_full_scan
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
a5163c32cc
|
Only perform full scan if pending set is empty
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e9e74c43e1
|
Naive periodic full scan
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
9b4b43cf19
|
Fix uploader's _process to extend queue after scan and count stats properly
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
d2971fbabe
|
Daira's excellent fixes to the uploader from our pairing session
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
70f66677be
|
Teach uploader's _scan to use the deque
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
2043bed3f1
|
Delay only the download scan not the turning of our event queue.
Author: David Stainton <david@leastauthority.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
0273034b0c
|
Fix umask again
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
ae59b17e86
|
Fix umask usage bit fiddling and use try finally blocks
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
f2a7978b29
|
Add download.umask config option with default of 077
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
623ed3516e
|
Add umask to Downloader
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
79f3c5d81a
|
Remove magic-folder exclude stat
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
6b4d3b8c6d
|
Refactor is_new_file.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
02dacbc067
|
Minor simplification.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e990483750
|
Simply conflict detection by removing nested if statements
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
6ed4480eb9
|
Scan our own dmd upon start only
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
ed4e4d053e
|
Add a unit-test and correct the code for "already deleted"
If a Downloader decides that it needs to delete a file, but that
file is already gone locally, the exeption is caugt and a log message
produced.
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
9d59ef493f
|
WIP: Refactoring to get db fields in one query.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
42f535edf9
|
Fix pending upload conflict detection.
Author: David Stainton <david@leastauthority.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
e8b6b31373
|
Detect remote conflict by checking for pending upload.
Author: David Stainton <david@leastauthority.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
c7f38a496d
|
Add debugging print statement for timestamp comparison
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
edc671f577
|
Add last uploaded timestamp comparison for remote conflict detection
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
c7f298bce5
|
Fix some miscapture bugs.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
868c38d228
|
Workaround.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
b21a3dc070
|
Simplify _notify and improve logging.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
17384ac512
|
Simplify _scan_remote_* and remove Downloader._download_scan_batch attribute.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
d686575393
|
Cosmetics.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
4f41be0e70
|
Downloader doesn't need the pending set.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
017d63b47b
|
Delete redundant is_ready attribute from MagicFolder.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5f98d73216
|
Add precondition to Uploader._process.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
0c12162bc8
|
Debugging WIP.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
84af199d51
|
WIP: exclude own dirnode from scan. This is not quite right; we shouldn't exclude it on startup. refs #2553
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
ea14b1bebe
|
Don't add subdirectory watches if the platform's notifier doesn't require them. refs #2559
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
6bb0963197
|
Improve reporting of assertion failures.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
2a79252a72
|
Fix some path Unixisms.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
1abc2c39c8
|
Don't download the deletion marker file unnecessarily.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
c6191257ea
|
Distinguish deletion of directories.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
d6bb49b1a6
|
Rename deleted files to .backup rather than unlinking them.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
99d1339d38
|
Add basic bob upload test and fix conflict detect
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
9ed61f1eb4
|
Count conflicted objects
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
7a3b35e29c
|
Basic remote conflict detection based on ancestor uri
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
f75dda7635
|
Avoid .format, since it is inconsistent between Python 2.6 and 2.7 (and the rest of Tahoe-LAFS doesn't use it).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
e4082a45d3
|
Add counter for uploader.objects_not_uploaded.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
c883977eb6
|
add the 'spurious' notifies
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
d61b8ed39e
|
implement 'delete' functionality, with tests
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
cec315da49
|
Add test that we don't write files outside the magic folder directory. refs ticket:2506
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|