esp-idf/components
Ivan Grokhotkov e314f42b0c nvs: fix Page::findItem and Storage::findItem regression
When read caching was added, Page::findItem started modifying itemIndex reference argument even if item wasn't found.
Incidentally, Storage::findItem reused itemIndex when starting search at next page.
So,
- if the first page had a cached index (findItem was called for that page), and it pointed to a non-zero index,
- first page has a few empty items at the end (but is marked full),
- next search looked up the item on the second page,
- index of the item on the second page was less than the cached index on the first page,
then the search would fail because cached starting index was reused.

This change fixes both sides of the problem:
- Page::findItem shouldn't modify itemIndex argument if item is not found
- Storage::findItem should not reuse itemIndex between pages

Two tests have been added.
2016-11-03 20:18:30 +08:00
..
bootloader bootloader: move useful structures to esp32 component 2016-10-27 17:57:29 +08:00
bt docu makup update 2016-11-01 01:21:18 +08:00
driver Modify gpio.h and ledc.h 2016-11-01 22:35:42 +08:00
esp32 conver tabs to spaces in frc_timer_reg.h 2016-11-03 17:44:23 +08:00
esptool_py bootloader, menuconfig: add flash size setting support 2016-10-21 15:27:25 +11:00
expat components/expat: just change format of expat.rst 2016-09-28 16:26:35 +08:00
freertos Merge branch 'feature/crosscore_int' into 'master' 2016-10-31 11:04:28 +08:00
idf_test fix bug for case WIFI_CONN_0102: 2016-10-24 18:59:56 +08:00
json json & expat: Update component.mk after merging from master 2016-09-09 14:07:45 +10:00
log Fixed confused Sphinx 2016-11-01 01:21:18 +08:00
lwip newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example 2016-11-03 12:46:46 +08:00
mbedtls Kconfig: use 4 spaces to instead 1 tab 2016-09-28 13:24:58 +08:00
newlib newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example 2016-11-03 12:46:46 +08:00
nghttp Add test for compiling in release mode, fix warnings and errors which appeared 2016-10-17 13:40:10 +08:00
nvs_flash nvs: fix Page::findItem and Storage::findItem regression 2016-11-03 20:18:30 +08:00
openssl components/openssl: add more debug stream output function 2016-11-01 15:16:14 +08:00
partition_table Remove bin/ directory in favour of an add_path.sh script that can be sourced 2016-09-01 18:45:10 +10:00
spi_flash spi_flash: remove unnecessary src pointer alignment check in spi_flash_write 2016-10-31 19:08:56 +08:00
tcpip_adapter esp32/tcpip_adapter: softap supports max 10 stations 2016-10-28 16:53:49 +08:00
vfs vfs: fix adding CR 2016-10-28 16:16:12 +08:00
xtensa-debug-module Add licenses to Trax files 2016-10-21 18:01:20 +08:00