From c46e069d341073dd0bffcbdd6e8308b57ad85685 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sun, 13 Jul 2025 12:22:44 +0800 Subject: [PATCH] Tiny fix mooncake log warning wrong output (#7952) --- python/sglang/srt/disaggregation/mooncake/conn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/sglang/srt/disaggregation/mooncake/conn.py b/python/sglang/srt/disaggregation/mooncake/conn.py index d7bd308f1..a9e9bf2c5 100644 --- a/python/sglang/srt/disaggregation/mooncake/conn.py +++ b/python/sglang/srt/disaggregation/mooncake/conn.py @@ -533,12 +533,12 @@ class MooncakeKVManager(BaseKVManager): if len(chunked_dst_kv_indice) < len( kv_chunk.prefill_kv_indices ): - kv_chunk.prefill_kv_indices = kv_chunk.prefill_kv_indices[ - : len(chunked_dst_kv_indice) - ] logger.warning( f"len(chunked_dst_kv_indice) = {len(chunked_dst_kv_indice)}, len(kv_chunk.prefill_kv_indices) = {len(kv_chunk.prefill_kv_indices)}" ) + kv_chunk.prefill_kv_indices = kv_chunk.prefill_kv_indices[ + : len(chunked_dst_kv_indice) + ] target_rank_registration_info: KVArgsRegisterInfo = ( self.decode_kv_args_table[req.mooncake_session_id]