diff --git a/docs/winery.rst b/docs/winery.rst index 660a9e26f1427146218159056c57c3930f6f4f19..272f5c697e9e19b8f1bc7624e5a59d9916485ca4 100644 --- a/docs/winery.rst +++ b/docs/winery.rst @@ -19,7 +19,7 @@ Implementation notes :py:mod:`swh.objstorage.backends.winery.sharedbase` contains the global objstorage index implementation, which associates every object id (currently, the SHA256 of the content) to the shard it contains. The list of shards is stored in a table, associating them with a numeric id to save space, and their current :py:class:`swh.objstorage.backends.winery.sharedbase.ShardState`. The name of the shard is used to create a table (for write shards) or a RBD image (for read shards). -:py:mod:`swh.objstorage.backends.winery.roshard` handles read-only shard management: classes handling the lifecycle of the shards pool, the :py:class:`swh.objstorage.backends.winery.roshard.ROShardCreator`, as well as :py:class:`swh.objstorage.backends.winery.roshard.ROShard`, a thin layer on top of :py:mod:`swh.perfecthash` used to access the objects stored inside a read-only shard. +:py:mod:`swh.objstorage.backends.winery.roshard` handles read-only shard management: classes handling the lifecycle of the shards pool, the :py:class:`swh.objstorage.backends.winery.roshard.ROShardCreator`, as well as :py:class:`swh.objstorage.backends.winery.roshard.ROShard`, a thin layer on top of :py:mod:`swh.shard` used to access the objects stored inside a read-only shard. :py:mod:`swh.objstorage.backends.winery.rwshard` handles the database-backed write shards for all their lifecycle. diff --git a/requirements-swh.txt b/requirements-swh.txt index 64a143086aaa7ef3917b175e74b4290ea2492af5..fb0daabe173b3e2d0141e658f948b69dc0118063 100644 --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,3 +1,3 @@ swh.core[http] >= 3.0.0 swh.model >= 0.0.27 -swh.perfecthash >= 1.3.0 +swh.shard >= 1.0.0 diff --git a/swh/objstorage/backends/winery/roshard.py b/swh/objstorage/backends/winery/roshard.py index 116de1c80046960d3cb5ccd36d582f1687f177ee..291ddc3c4dafb97f476ddbec0029ac0df69949ca 100644 --- a/swh/objstorage/backends/winery/roshard.py +++ b/swh/objstorage/backends/winery/roshard.py @@ -29,7 +29,7 @@ from typing import ( from systemd.daemon import notify -from swh.perfecthash import Shard, ShardCreator +from swh.shard import Shard, ShardCreator from . import settings from .sharedbase import ShardState, SharedBase