[Bugfix][Multimodal] Handle prefix-covered items in SHM worker cache (#54994)
Signed-off-by: waizuichougou <2082431897@qq.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
co-authored by
Nick Hill
parent
27a94d1ce4
commit
3f1af35e01
@@ -794,6 +794,18 @@ class ShmObjectStoreReceiverCache(BaseMultiModalReceiverCache):
|
||||
reader_lock=shared_worker_lock,
|
||||
)
|
||||
|
||||
@override
|
||||
def get_and_update_features(
|
||||
self, mm_features: list["MultiModalFeatureSpec"]
|
||||
) -> list["MultiModalFeatureSpec"]:
|
||||
# strip_covered_mm_data preserves address items, so None here represents
|
||||
# a stripped uncached payload and has no SHM reference to acknowledge.
|
||||
features_with_data = [
|
||||
feature for feature in mm_features if feature.data is not None
|
||||
]
|
||||
super().get_and_update_features(features_with_data)
|
||||
return mm_features
|
||||
|
||||
@override
|
||||
def get_and_update_item(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user