Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9816989b
Unverified
Commit
9816989b
authored
Sep 28, 2025
by
Teng Ma
Committed by
GitHub
Sep 28, 2025
Browse files
[HiCache] bug: fix mooncake store batch set v1 (#11013)
parent
42245551
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python/sglang/srt/mem_cache/storage/mooncake_store/mooncake_store.py
...ng/srt/mem_cache/storage/mooncake_store/mooncake_store.py
+4
-4
No files found.
python/sglang/srt/mem_cache/storage/mooncake_store/mooncake_store.py
View file @
9816989b
...
...
@@ -275,10 +275,10 @@ class MooncakeStore(HiCacheStorage):
set_buffer_ptrs
=
[]
set_buffer_sizes
=
[]
set_indices
=
[]
set_results
=
[
-
1
]
*
len
(
keys
)
for
i
in
range
(
len
(
keys
)):
set_results
=
[
-
1
]
*
len
(
key
_str
s
)
for
i
in
range
(
len
(
key
_str
s
)):
if
exist_result
[
i
]
!=
1
:
set_keys
.
append
(
keys
[
i
])
set_keys
.
append
(
key
_str
s
[
i
])
set_buffer_ptrs
.
append
(
buffer_ptrs
[
i
])
set_buffer_sizes
.
append
(
buffer_sizes
[
i
])
set_indices
.
append
(
i
)
...
...
@@ -288,7 +288,7 @@ class MooncakeStore(HiCacheStorage):
# Only set non-existing keys to storage
if
len
(
set_keys
)
>
0
:
put_results
=
self
.
_put_batch_zero_copy_impl
(
key_strs
,
buffer_ptrs
,
buffer_sizes
set_keys
,
set_
buffer_ptrs
,
set_
buffer_sizes
)
for
i
in
range
(
len
(
set_indices
)):
set_results
[
set_indices
[
i
]]
=
put_results
[
i
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment