1
0
mirror of https://github.com/armink/FlashDB.git synced 2025-02-04 08:43:07 +08:00

87 Commits

Author SHA1 Message Date
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
PostmanLinux
89796605c7
[kvdb] improve kvdb cache algo when key was first found (#218) 2023-06-05 22:53:41 +08:00
朱天龙 (Armink)
4e56774082 [fdb] add db path info for logs 2023-05-28 19:03:26 +08:00
朱天龙 (Armink)
8608140d88 [fdb] check some read error for file mode 2023-05-28 19:02:04 +08:00
朱天龙 (Armink)
3c80fa5679 [kvdb] add align padding for 64bit write granularity mode 2023-05-16 09:50:17 +08:00
朱天龙 (Armink)
a035ea3b2c [fdb] change some assert to error logs 2023-05-14 21:20:30 +08:00
朱天龙 (Armink)
dbf5a58fa1 [kvdb] fixed the memory read out of bounds error 2023-05-14 18:31:10 +08:00
朱天龙 (Armink)
6e3ebdc056 [kvdb] fix kvdb memory access error when FDB_WRITE_GRAN is 64 2023-05-07 21:25:59 +08:00
朱天龙 (Armink)
63fe2961c4 [kvdb] Improve the oldest sector search method. 2023-04-29 23:49:37 +08:00
朱天龙 (Armink)
cc5d665bbc [kvdb] fix kvdb iterate bug after set default. 2023-04-29 21:06:16 +08:00
朱天龙 (Armink)
c829b3d8e2 [kvdb] fix #211 , fdb kv iterate from the oldest sector. 2023-04-29 16:11:35 +08:00
朱天龙 (Armink)
6e8e9e7780 [tsdb] the tsl will drop when cur timestamp is equal to the last save timestamp 2023-04-22 10:00:10 +08:00
朱天龙 (Armink)
7fd3db6740 [fdb] move the db oldest_addr definition into struct fdb_db. 2023-04-21 23:58:27 +08:00
朱天龙 (Armink)
04a3f475e2 [kvdb] update the code format. 2023-04-21 22:21:26 +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
weiguang-fan
9817307026
fix: write fail as re-program flag at same address (#203) 2023-04-07 19:12:15 +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)
d1c5243873 [fdb] add block size check. MUST to be the Nth power of 2. 2023-03-14 23:29:22 +08:00
朱天龙 (Armink)
b34e6b52d1 [kvdb] Use partial GC function to reduce GC time. 2023-03-14 22:02:11 +08:00
yuanyu
18bfd7b4ca Flash with 0 after erasure is supported 2023-02-16 17:36:09 +08:00
shihang.zhang
46099d7082 fix: use aligned macro to replace unaligned sizeof structure. Please review the change and fix other similar issues if there any. 2023-01-04 10:25:48 -06:00
Denis Shreiber
d914eb068c
Remove warning on build when FDB_KV_AUTO_UPDATE is defined (#181) 2022-10-02 22:07:21 +08:00
Asurada
b9b6fd00cd
timestap --> timestamp (#179) 2022-09-30 12:48:57 +08:00
朱天龙 (Armink)
ee634fec10 [tsdb] add the locker in iterator. 2022-08-27 13:49:08 +08:00
朱天龙 (Armink)
2b3b12ceb4 [tsdb] Fix the bug that data cannot be queried under some conditions. 2022-08-27 13:31:43 +08:00
朱天龙 (Armink)
79ac8f1746 [kvdb] update the comments. 2022-08-27 13:29:21 +08:00
Spider
8554116d6d
Fix/gran 64 (#173)
Fix GRAN 64bit
2022-08-24 15:54:12 +08:00
Spider
45a146a527
Remove warnings on GCC build (#174)
* Remove warnings on GCC build
2022-08-23 15:15:45 +08:00
朱天龙 (Armink)
9c53806e9e
Revert "Abandon the verification of the data whose status is deleted" 2022-07-02 21:07:41 +08:00
chwncy
6a95ac8c8a Abandon the verification of the data whose status is deleted 2022-06-15 21:41:20 +08:00
朱天龙 (Armink)
92052b70bc [tsdb] fix ci build error. 2022-06-12 15:52:05 +08:00
朱天龙 (Armink)
4e393e1326 [tsdb] format the code style. 2022-06-11 14:39:13 +08:00
tangzhenye
e94569b2b2 【修改】合并重读代码 2022-06-11 14:26:17 +08:00
tangzhenye
ceb75d203a 【新增】tsdb支持按时间逆序迭代
【修改】全部逆序迭代时的多余操作
2022-06-10 17:47:27 +08:00
朱天龙 (Armink)
536c1f3a6f [tsdb] remove #pragma pack and rename fdb_tsl_iter_reverse. 2022-05-18 20:27:07 +08:00
朱天龙 (Armink)
e3b1beed2b
Merge pull request #145 from MikeTuev/MikeTuev-patch-reverse_iterator
Mike tuev patch reverse iterator
2022-05-18 20:16:37 +08:00
Tobias Wiens
0b5ac0039b adding ifdef guards to update method. should only be called if cache is used. 2022-04-24 23:18:12 +02:00
MikeTuev
9b021c3056
reverse iterator 2022-04-24 01:25:50 +05:00
MikeTuev
a65a323508
struct packing 2022-04-24 01:23:13 +05:00
armink
fd062f7053 [fdb] fix error code. 2022-01-25 20:18:26 +08:00
armink
91072137d7 [tsdb] Improve exception handling. 2021-12-26 15:35:29 +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
8114f88147 [tsdb] Fix append bug when tsdb is full. Thx @xwiron report. 2021-10-02 16:56:40 +08:00
armink
cba9612797 [tsdb] Fix log format. Thx @xwiron report.
Signed-off-by: armink <armink.ztl@gmail.com>
2021-10-02 14:26:25 +08:00
armink
88b8a0efc8 [kvdb] Fix gc error when ENV full by @wu1045718093 on https://github.com/armink/EasyFlash/pull/113 . 2021-10-02 14:22:20 +08:00
armink
5e5d99b7ce [fdb] Update the code comment. 2021-10-02 12:06:25 +08:00
armink
44a414e224 [TSDB] Drop the append TSL when current time is less than last save time. 2021-09-10 17:20:19 +08:00
iysheng
d4b9a0496e [fdb] Fix mismatch with the comments for status migration when FDB_WRITE_GRAN eq 1 2021-08-16 11:13:43 +08:00
Tennn11
9376925922 【修改】write函数增加sync参数,KVDB和TSDB存储数据时减少sync次数 2021-08-06 16:38:11 +08:00