Commit 58f0ef4
Wire AccessTimeMap persistence into NvmCache warm restart
Summary:
Enable end-to-end AccessTimeMap persistence by wiring persist/recover
into NvmCache's startup and shutdown paths:
- Constructor: store `shmManager_` from `navyPersistParams`. After
`navyCache_` creation, call `accessTimeMap_->recover()` when not
truncating and shm is available.
- shutDown(): call `accessTimeMap_->persist()` before
`navyCache_->persist()` when `shmManager_` is available.
This is the "activation" diff — can be landed last and reverted
independently if issues arise.
Reviewed By: rlyerly
Differential Revision: D95409666
fbshipit-source-id: 45cb29fc737445766cfaf1c447acfc97ebfe40e51 parent f7e7867 commit 58f0ef4
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
621 | 625 | | |
622 | 626 | | |
623 | 627 | | |
| |||
1103 | 1107 | | |
1104 | 1108 | | |
1105 | 1109 | | |
1106 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1107 | 1114 | | |
1108 | 1115 | | |
1109 | 1116 | | |
| |||
1114 | 1121 | | |
1115 | 1122 | | |
1116 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1117 | 1132 | | |
1118 | 1133 | | |
1119 | 1134 | | |
| |||
1683 | 1698 | | |
1684 | 1699 | | |
1685 | 1700 | | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
1686 | 1711 | | |
1687 | 1712 | | |
1688 | 1713 | | |
| |||
0 commit comments