This repository was archived by the owner on Feb 16, 2026. It is now read-only.
Commit edbbdfa
committed
cache_expire: Avoid double counting of OC_EF_REMOVE objects
When the exp_expire() finds the expired object also in the inbox, it would still
count it as expired. We now avoid the double count by excluding objects with
OC_EF_REMOVE set.
And we also reduce traffic on the global counter by using a local variable for
the loop.1 parent d55b23f commit edbbdfa
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| |||
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
542 | | - | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
| 546 | + | |
| 547 | + | |
545 | 548 | | |
546 | 549 | | |
547 | 550 | | |
| |||
556 | 559 | | |
557 | 560 | | |
558 | 561 | | |
| 562 | + | |
559 | 563 | | |
560 | 564 | | |
561 | 565 | | |
| |||
0 commit comments