Skip to content

Commit d923867

Browse files
committed
skip CRC when initializing TDBStore
1 parent 95fee2f commit d923867

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/kvstore/tdbstore/source/TDBStore.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ int TDBStore::read_record(uint8_t area, uint32_t offset, char *key,
374374

375375
if (calc_hash) {
376376
hash = calc_crc(hash, chunk_size, dest_buf);
377+
#ifdef KVSTORE_RAM_TABLE_NO_CRC_CHECK
378+
next_offset = align_up(offset + total_size, _prog_size);
379+
return ret;
380+
#endif /* KVSTORE_RAM_TABLE_NO_CRC_CHECK */
377381
}
378382

379383
user_key_ptr += chunk_size;

0 commit comments

Comments
 (0)