-
- Downloads
Add StorageInterface.skipped_content_find()
To create recovery bundle, `swh-alter` needs to be able to retrieve full SkippedContent objects from the storage. The new method `skipped_content_find()` allows to retrieve all SkippedContent objects matching a given set of hashes. Usually, this should only be one, but multiple objects might be returned in case of hash collisions. While implementing this, swh-storage#4693 was identified which prevent testing the implementation with the PostgreSQL storage in the case a SkippedContent references a known origin. Ref: swh/devel/swh-alter#6
Showing
- swh/storage/cassandra/storage.py 27 additions, 0 deletionsswh/storage/cassandra/storage.py
- swh/storage/interface.py 19 additions, 0 deletionsswh/storage/interface.py
- swh/storage/postgresql/db.py 50 additions, 0 deletionsswh/storage/postgresql/db.py
- swh/storage/postgresql/storage.py 23 additions, 0 deletionsswh/storage/postgresql/storage.py
- swh/storage/tests/storage_tests.py 119 additions, 0 deletionsswh/storage/tests/storage_tests.py
Loading
Please register or sign in to comment