Merge lp:~jderose/dmedia/downgrade-unknown into lp:dmedia
Status: | Merged |
---|---|
Merged at revision: | 589 |
Proposed branch: | lp:~jderose/dmedia/downgrade-unknown |
Merge into: | lp:dmedia |
Diff against target: |
256 lines (+143/-57) 2 files modified
dmedia/metastore.py (+26/-14) dmedia/tests/test_metastore.py (+117/-43) |
To merge this branch: | bzr merge lp:~jderose/dmedia/downgrade-unknown |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
xzcvczx (community) | Approve | ||
dmedia Dev | Pending | ||
Review via email: mp+150052@code.launchpad.net |
Description of the change
For more info, see this bug:
https:/
This reworks MetaStore.
Importantly, this change means copies in a store will always be downgraded when the store lacks a corresponding doc in CouchDB. Previously, a missing dmedia/store doc meant these copies never got downgraded by the store atime (although they would eventually get downgraded when the DOWNGRADE_
To be a bit more conservative as we test and tune the remaining automation behaviours, I also lowered DOWNGRADE_
Lastly, the threshold for when files would start to be re-verified was previous hard-coded using the ONE_WEEK constant. Instead, it's now using new VERIFY_THRESHOLD constant (also in the tests), making this parameter easy to tune.
Nice