| 11425 | if (cold_store_len >= s->kv.opt.min_tokens) { |
| 11426 | /* A cold checkpoint can land exactly on the continued-checkpoint |
| 11427 | * frontier. The prefill progress callback would then write the same |
| 11428 | * prefix as "continued" while we are intentionally stopping there to |
| 11429 | * write it as "cold". Mark the frontier as already handled before the |
| 11430 | * sync reaches it; if the cold write fails, restore the old schedule so |
| 11431 | * a later continued write can still try. */ |
| 11432 | suppressed_continued_last = |
| 11433 | kv_cache_slot_suppress_continued(s, slot, cold_store_len); |
| 11434 | } |
| 11435 | |
| 11436 | if (s->kv.enabled && |
| 11437 | cold_store_len >= s->kv.opt.min_tokens && |
| 11438 | cold_store_len < prompt_for_sync->len) |
no test coverage detected