Commit f1850f5
[KVCache][BugFix] fix increment ref count logic in cache_manager
## Motivation
`increment_ref_nodes` should only be called during the scheduling
phase (when `skip_storage=True`), not during the actual storage
prefetch phase. The previous condition was inverted, causing ref
counts to be incremented at the wrong time.
## Modifications
- Fix condition from `not (self._storage_scheduler and skip_storage)`
to `skip_storage` in `CacheManager.match`
- Update comment to clarify "only scheduling phase"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 01b8eb5 commit f1850f5
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
536 | | - | |
| 535 | + | |
| 536 | + | |
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| |||
0 commit comments