Commit bfde7d4
committed
Fix L1 WAL write-behind + L5 FINGERPRINT constant mismatch
L1 (CRITICAL): Reorder on_write() and on_delete() in hardening.rs so
WAL append happens BEFORE in-memory LRU/TTL mutations. Previously a
crash between memory update and WAL would lose data silently.
L5 (MEDIUM): Make FINGERPRINT_U64 in lib.rs an alias for
FINGERPRINT_WORDS from bind_space.rs instead of independent constant.
Also replace hardcoded 256 in cog_redis.rs with FINGERPRINT_U64.
L2, L3, L4 verified already fixed in prior sessions.
https://claude.ai/code/session_0152b2NJYnjCJjvMAmgsTx3p1 parent dd750f8 commit bfde7d4
3 files changed
Lines changed: 28 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
280 | 282 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2744 | 2744 | | |
2745 | 2745 | | |
2746 | 2746 | | |
2747 | | - | |
| 2747 | + | |
2748 | 2748 | | |
2749 | 2749 | | |
2750 | 2750 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
749 | 764 | | |
750 | 765 | | |
751 | 766 | | |
| |||
784 | 799 | | |
785 | 800 | | |
786 | 801 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | 802 | | |
801 | 803 | | |
802 | 804 | | |
803 | 805 | | |
804 | 806 | | |
805 | 807 | | |
806 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
807 | 818 | | |
808 | 819 | | |
809 | 820 | | |
| |||
817 | 828 | | |
818 | 829 | | |
819 | 830 | | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
| |||
0 commit comments