esp-idf/components
Ivan Grokhotkov 3269653b94 Merge branch 'bugfix/nvs_lookup_failure' into 'master'
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.

ref. TW8406

See merge request !171
2016-11-10 16:58:39 +08:00
..
bootloader build system: Fix bootloader-flash target 2016-11-08 20:17:08 +08:00
bt docu makup update 2016-11-01 01:21:18 +08:00
driver driver/gpio: fix interrupt type names in comment block 2016-11-08 20:17:08 +08:00
esp32 wifi: use MACSTR and MAC2STR in logging statements 2016-11-08 20:17:08 +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 Set result "Succeed" for passed cases 2016-11-02 20:54:22 +08:00
json json & expat: Update component.mk after merging from master 2016-09-09 14:07:45 +10:00
log bootloader: move some functions out of IRAM when building in bootloader mode 2016-11-08 20:17:08 +08:00
lwip lwip: fix duplicate definition of O_NONBLOCK 2016-11-08 20:17:08 +08:00
mbedtls Kconfig: use 4 spaces to instead 1 tab 2016-09-28 13:24:58 +08:00
newlib Merge branch 'bugfix/github_issues' into 'master' 2016-11-09 10:12:25 +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 bootloader: move some functions out of IRAM when building in bootloader mode 2016-11-08 20:17:08 +08:00
tcpip_adapter esp32/tcpip_adapter: softap supports max 10 stations 2016-10-28 16:53:49 +08:00
vfs vfs: check error code returned by FS driver open function 2016-11-08 20:17:08 +08:00
wpa_supplicant wpa_supplicant: clean up unused variable warning 2016-11-08 20:26:12 +08:00
xtensa-debug-module Add licenses to Trax files 2016-10-21 18:01:20 +08:00