Revision 05a4fca1258fd424221e0a22fe782b47c7c70f8e authored by Antoine R. Dumont (@ardumont) on 06 March 2020, 12:58:51 UTC, committed by Antoine R. Dumont (@ardumont) on 10 March 2020, 08:27:55 UTC
This matches, what's done in other storage backends. There is no consistency
for now though, storage backends provides as HashCollision exception parameters
the content information as:

  - cassandra: (algo: str, hash_id: bytes, Content as cassandra Row)
  - in_memory: (algo: str, hash_id: bytes, Content as Tuple[str, bytes]
  - pgstorage: algo: Optional[str]

Opening this diff to discuss how to properly land this.
1 parent 88fe942
History
File Mode Size
bin
docs
sql
swh
.gitignore -rw-r--r-- 136 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 46 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 242 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 69 bytes
README.md -rw-r--r-- 4.2 KB
mypy.ini -rw-r--r-- 889 bytes
pytest.ini -rw-r--r-- 392 bytes
requirements-swh-journal.txt -rw-r--r-- 22 bytes
requirements-swh.txt -rw-r--r-- 73 bytes
requirements-test.txt -rw-r--r-- 318 bytes
requirements.txt -rw-r--r-- 104 bytes
setup.py -rwxr-xr-x 2.4 KB
tox.ini -rw-r--r-- 533 bytes

README.md

back to top