Hello All,
this question pertains mostly to nRF5 SDK ver 17.1.0
I was recently investigating a bug in a project that used FDS and in particular the record update functionality. The root cause ended up being something simple in my own code but it got me thinking about a hypothetical scenario that might have come up if I didn't catch the bug in the first place. Lets say for some reason I have accidentally written a new version of a file I meant to update, so instead of there being one "dirty" copy of the file and one clean copy there are now two clean copies whose headers only differ by their record ID, not in File ID or Record Key. If I later call the fds update function on this File ID, when the module is looking for old record ID's to mark for garbage collection will it stop after finding the first record? will it ever catch that there are two copies of the same file or would I have to address this separately with an explicit function to iterate through all FDS pages and mark all but the newest record ID's for garbage collection?
Thanks