Repository navigation
Commit ec8deaa
committed
fix(sessions): prune stale entries independently of maxEntries gate
Fixes #103956
The load-time stale-entry pruning in `loadSessionStore()` was gated by
entry count exceeding `maxEntries`, causing `pruneAfter` to be silently
ignored when the store was under the limit. Remove the entry-count gate so
that `pruneStaleEntries` runs whenever mode is `"enforce"`, matching the
pattern already established in `applyEnforcedMaintenance()`.
Changes:
- Remove `&& beforeCount > maintenance.maxEntries` condition from pruning block
- Keep capping step gated by `shouldRunSessionEntryMaintenance` as before
- No behavioral change to capping logic1 parent 070b045 commit ec8deaa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
0 commit comments