fix(pd): clear stale bootstrap_room when freeing metadata buffer slot (#27374)

Co-authored-by: gongxiaotian <gongxiaotian@didiglobal.com>
This commit is contained in:
XiaoTian
2026-06-05 19:46:35 +08:00
committed by GitHub
co-authored by gongxiaotian
parent 7f919edf00
commit e1955bf57a
@@ -1676,6 +1676,9 @@ class DecodeTransferQueue(DecodeHiCacheTransferMixin):
)
idx = self.queue[i].metadata_buffer_index
assert idx != -1
# Reset so the next owner sees actual_room == 0 ("not yet written")
# instead of the stale value, avoiding a false-positive mismatch.
self.metadata_buffers.bootstrap_room[idx] = 0
self.req_to_metadata_buffer_idx_allocator.free(idx)
self.queue = [