mirror of https://github.com/ARMmbed/mbed-os.git
Previous logic caused garbage collection to kick in, if the init() was called on empty storage. This has effect of erasing areas twice, if both areas were empty. Re-write logic so that we erase areas only on garbage_collect() or reset(). The init() logic already chooses the active area, so no need to touch, until keys are modified. Removed also the is_erase_unit_erased() as this is working only on FLASH devices, and TDBStore should be refactored to work on all storages. |
||
|---|---|---|
| .. | ||
| TESTS | ||
| blockdevice | ||
| filesystem | ||
| kvstore | ||
| nvstore | ||
| system_storage | ||