Commit Graph

52 Commits

Author SHA1 Message Date
armink 441d514da2 [fdb] update the version number to V2.1.0 2023-11-19 12:36:13 +08:00
armink 718f73fbe6 [fdb] Add file access cache in file mode. The GC speed is up 2X. 2023-11-19 12:34:43 +08:00
armink cb84e2c41d [fdb] Improve FDB_ALIGN_DOWN macro. The align input parameter NOT depends on 2^N align number. 2023-11-19 11:34:48 +08:00
armink 5ebf8e6e8f [kvdb] Add kvdb inergrity check API. 2023-11-19 11:32:19 +08:00
armink a2c442435c [kvdb] Improve the kvdb cache performance. The GC will be 8x faster in file mode. 2023-11-19 11:26:48 +08:00
Valeriy Kucherenko 0d1b438947
Add ability to append TSDB value at specific timestamp (#256) 2023-11-09 19:27:52 +08:00
tinic 7bdef5eab7
[fdb] Support 128bit write granularity for kvdb (#250)
* Support 128bit write granularity

The new stm32h5xx chips can only write quad words, i.e. 128bits.

* Update fdb_tsdb.c to include 128bit option
* Update fdb_cfg.h to include 64bit and 128bit option.
2023-10-17 10:01:43 +08:00
guoweilkd 4aa2dbc6a4 fix FDB_ALIGN macro expansion errors 2023-10-12 11:01:02 +08:00
DarryZh 3e441f6c26
[inc/fdb_low_lvl] fix An error occurred in FDB_ALIGN(size, align) when align is not 2 to the nth power (#233) 2023-08-17 18:01:48 +08:00
benpicco fab8a16180
[fdb] add missing assert.h include (#229) 2023-08-09 21:46:10 +08:00
benpicco a4e68ae965
[fdb] use native assert if FDB_USING_NATIVE_ASSERT is set (#228) 2023-08-09 19:55:20 +08:00
grape-wzy cc1c6f4d9f
[kvdb] update _fdb_kv_load(fdb_kvdb_t db) (#219)
remove function declaration in fdb_low_lvl.h;
add static qualifier in fdb_kvdb.c
2023-06-10 13:30:15 +08:00
朱天龙 (Armink) 4e56774082 [fdb] add db path info for logs 2023-05-28 19:03:26 +08:00
朱天龙 (Armink) 55fd31eeb3 [fdb] update FDB_SECTOR_CACHE_TABLE_SIZE to 8 2023-05-28 19:01:06 +08:00
朱天龙 (Armink) 53de94f82c [fdb] update the version number to 2.0.0 2023-05-14 22:00:41 +08:00
朱天龙 (Armink) c829b3d8e2 [kvdb] fix #211 , fdb kv iterate from the oldest sector. 2023-04-29 16:11:35 +08:00
朱天龙 (Armink) 7fd3db6740 [fdb] move the db oldest_addr definition into `struct fdb_db`. 2023-04-21 23:58:27 +08:00
朱天龙 (Armink) e9aa6cd9fa Merge remote-tracking branch 'remotes/origin/partial_gc' 2023-04-21 22:11:39 +08:00
shihang-zhang e008c1a281
[kvdb] update the sector iterator by startswith the oldest sector (#206)
Co-authored-by: shihang.zhang <shihang.zhang.ext@siemens.com>
2023-04-21 14:47:48 +08:00
shihang-zhang 39e81fa9b2
Fix memory overridden (#209)
* fix: memory was written out of its boundary.



Co-authored-by: 朱天龙 (Armink) <armink.ztl@gmail.com>
Co-authored-by: shihang.zhang <shihang.zhang.ext@siemens.com>
2023-04-06 23:18:02 +08:00
朱天龙 (Armink) 519a06f65a [fdb] fixed gcc warning. 2023-03-27 22:20:28 +08:00
朱天龙 (Armink) 6630bbf23e [fdb] Fix assert log not output problem when FDB_DEBUG_ENABLE is disable. 2023-03-27 22:13:33 +08:00
yuanyu 18bfd7b4ca Flash with 0 after erasure is supported 2023-02-16 17:36:09 +08:00
朱天龙 (Armink) a5aa4026fd [fdb] format the code. 2022-08-27 13:24:56 +08:00
Spider 45a146a527
Remove warnings on GCC build (#174)
* Remove warnings on GCC build
2022-08-23 15:15:45 +08:00
朱天龙 (Armink) 03500fa925 update the version number. 2022-05-18 20:27:46 +08:00
朱天龙 (Armink) 536c1f3a6f [tsdb] remove #pragma pack and rename fdb_tsl_iter_reverse. 2022-05-18 20:27:07 +08:00
MikeTuev 85d136e58a
reverse iterator 2022-04-24 01:28:42 +05:00
朱天龙 (Armink) 7062902a3e [fdb] update the version number to V1.1.2 2022-03-28 17:24:43 +08:00
armink 83f1669773 [tsdb] Fixed a bug (#108) when tsl is full on rollover mode. Thx @kenny-33 @illusionkiller . 2021-12-26 15:11:33 +08:00
armink fad201a4d8 [fdb] Update the version to V1.1.0 2021-10-07 19:57:57 +08:00
armink 07db5a2242 [doc] Update the comment. 2021-10-02 16:57:37 +08:00
armink 5e5d99b7ce [fdb] Update the code comment. 2021-10-02 12:06:25 +08:00
armink c9cfd4598c [fdb] Change the status's number from enum to definition. 2021-10-01 18:13:01 +08:00
armink 1bd704db0a [fdb] Fix 64bit timestamp build problem. 2021-08-09 21:44:11 +08:00
Tennn11 9376925922 【修改】write函数增加sync参数,KVDB和TSDB存储数据时减少sync次数 2021-08-06 16:38:11 +08:00
armink c25198db19 [kvdb] Change the KV name default length to 64. 2021-04-16 18:27:38 +08:00
armink 7d4517598a [kvdb] Update the default KV cache table size to 64. 2021-04-15 22:53:48 +08:00
armink 16b41780dd [fdb] Add fdb_kvdb_deinit & fdb_tsdb_deinit function.
[fdb] Add init but NOT_FORMAT mode in TSDB and KVDB.
[kvdb] Update the cache when load KV.
2021-04-15 22:52:32 +08:00
朱天龙 (Armink) 165c1b7d1f
[fdb] support C++ compiler 2021-04-12 20:21:56 +08:00
armink 027992ced9 [kvdb] change the kvdb struct element name. 2021-02-02 20:43:07 +08:00
rabbitsaviola b3041a1770 避免静态变量导致多DB访问冲突 2021-02-02 19:30:30 +08:00
armink 474fc522e5 Fix some build warning on linux. 2021-01-03 22:27:59 +08:00
armink 9eea31ac18 Add file storage mode. 2021-01-03 19:17:51 +08:00
armink e3b62cec68 Update the version number. 2020-10-08 20:00:08 +08:00
armink 103674dd30 Change the version number to v1.0.0 2020-10-08 19:26:44 +08:00
armink 65a4b8968a [tsdb] add get last save time control command. 2020-07-05 23:59:50 +08:00
eggcar 44e6f02082 Add public KVDB iterator api 2020-07-03 17:26:36 +08:00
David Lin 884aec814a
Update fdb_def.h
get -> set
2020-06-28 11:18:24 +08:00
armink 9ea4a0e729 [tsdb&kvdb] improve the database control function. 2020-06-28 00:03:31 +08:00