]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/cls_cas: allow multi hobjects tracked by cls_cas 40867/head
authorKefu Chai <kchai@redhat.com>
Thu, 15 Apr 2021 03:28:35 +0000 (11:28 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Apr 2021 03:36:43 +0000 (11:36 +0800)
commit972bb2e1e6b51790782cb8269cb4acc046716323
tree7c6b978784945f00da5c1bdcf0f5dca52b3423f8
parentcbc7f727842f93130fcfbbad64de0959ee4a02d3
test/cls_cas: allow multi hobjects tracked by cls_cas

in d2737fd41a146e8efe3162cdc39845226bd5a756, we started to use multiset
for tracking the references of hobject for snapshot support. as the same
hobject maps to multiple snapshots. and we don't want to consider
different snapshots as the same entry tracked by cls_cas.

but cls_cas.dup_get() still tries to verify that the `get` operation
is able to dedup the same referenced "source". but this does not apply
to "by_object" trunk ref type anymore.

since we cannot check/choose the chunk ref type used by OSD from the
client of the cls_cas, in this change, cls_cas.dup_get() is updated
to adapt the change solely for "by_object". otherwise we could skip
this test for "by_object" type and/or define another test for other
chunk ref types.

Fixes: https://tracker.ceph.com/issues/50339
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/cls_cas/test_cls_cas.cc