7ae1df1c5e
Currently when page is being freed, items are individually moved from FREEING page to ACTIVE page and erased. If power-off happens during the process, the remaining entries are moved to ACTIVE page during recovery. The problem with this approach is there may not be enough space on ACTIVE page for all items if an item was partially written before power-off and erased during recovery. This change moves all the items from FREEING to ACTIVE page and then erased the FREEING page, If power-off happens during the process, then ACTIVE page is erased and the process is restarted. |
||
---|---|---|
.. | ||
compressed_enum_table.hpp | ||
intrusive_list.h | ||
nvs.hpp | ||
nvs_api.cpp | ||
nvs_item_hash_list.cpp | ||
nvs_item_hash_list.hpp | ||
nvs_page.cpp | ||
nvs_page.hpp | ||
nvs_pagemanager.cpp | ||
nvs_pagemanager.hpp | ||
nvs_platform.hpp | ||
nvs_storage.cpp | ||
nvs_storage.hpp | ||
nvs_test_api.h | ||
nvs_types.cpp | ||
nvs_types.hpp |