From 5a8d7d084249cdb16b1e57d7b3b1952b73318d62 Mon Sep 17 00:00:00 2001 From: armink Date: Sun, 15 Oct 2023 11:36:50 +0800 Subject: [PATCH] [fdb] Remove sector continuous mode assert check. It may trigger accidentally when db meta info has an error. --- src/fdb_kvdb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index 2311dcb..7c954dd 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -355,7 +355,6 @@ static fdb_err_t read_kv(fdb_kvdb_t db, fdb_kv_t kv) return FDB_READ_ERR; } else if (kv->len > db_sec_size(db) - SECTOR_HDR_DATA_SIZE && kv->len < db_max_size(db)) { //TODO Sector continuous mode, or the write length is not written completely - FDB_ASSERT(0); } /* CRC32 data len(header.name_len + header.value_len + name + value), using sizeof(uint32_t) for compatible V1.x */