Commit Graph

44 Commits

Author SHA1 Message Date
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
armink 1ddd18c03b [tsdb] Fix tsdb rollover bug. 2021-05-15 20:42:09 +08:00
tangyuxin 44be7f2218 There can be no default kv 2021-04-25 16:13:37 +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 3cbc868f0e [fdb] Support MSVC compiler.
Signed-off-by: armink <armink.ztl@gmail.com>
2021-03-08 21:29:30 +08:00
armink 0afb773f08 [fdb] Improve the file mode write speed. 2021-03-08 21:23:52 +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 119a08516c [kvdb] Fix get_next_kv_addr bug. #45 2021-01-23 16:05:49 +08:00
armink 9487749965 [kvdb] Improve get_next_kv_addr function. Fixed #45 2021-01-23 11:51:30 +08:00
armink 218c4df0bd [kvdb] Improve del_kv code. Fixed #60 2021-01-23 11:25:07 +08:00
chenyong fd99aaff4a 【修复】tsdb 数据为空时迭代器运行错误问题
Signed-off-by: chenyong <chenyong@rt-thread.com>
2021-01-21 19:06:12 +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 8a4dabed62 Fix the log format. 2020-10-04 16:41:52 +08:00
armink 0fc1073e91 [kvdb] update the log format %zu => %u 2020-10-02 17:35:07 +08:00
armink c222985204 Update the log format. 2020-10-02 16:45:43 +08:00
armink ba028c7092 [kvdb] fix build warning on GCC. 2020-07-14 22:55:30 +08:00
朱天龙 (Armink) b01af3a368
Merge pull request #19 from eggcar/master
Fix typo in kvdb iterator. Update format strings for compatibility
2020-07-08 09:15:57 +08:00
eggcar deaee8792f [Compatibility] Update format string restrict to specified types 2020-07-07 11:29:46 +08:00
EtcFly 0cb76747c0 Optimize code execution efficiency 2020-07-07 09:25:24 +08:00
armink 8fb75abea0 [tsdb] fix the fdb_tsl_iter_by_time query issue. 2020-07-06 22:47:51 +08:00
eggcar de909e7178 Fix: Typo in fdb_kv_iterate() 'kv->addr.start == 0' -> 'kv->addr.start = 0' 2020-07-06 10:48:34 +08:00
armink 65a4b8968a [tsdb] add get last save time control command. 2020-07-05 23:59:50 +08:00
armink f8a3ec152e [tsdb] fix the fdb_tsl_iter_by_time query issue. 2020-07-05 17:00:23 +08:00
eggcar e411c5c29a Format: wrong indentation of last commit 2020-07-05 02:13:02 +08:00
eggcar a02558252f Fix : wront description of fdb_kv_iterate() return value 2020-07-05 02:04:00 +08:00
eggcar a2a2f53d8a Fix: fdb_kv_iterate() now return and stats only active kvs (kv->status are FDB_KV_WRITE) 2020-07-05 01:58:35 +08:00
eggcar 44e6f02082 Add public KVDB iterator api 2020-07-03 17:26:36 +08:00
eggcar 9d00e177a6 in fdb_kv_to_blob(): kv->addr.start should be assigned to blob->saved.meta_addr ? 2020-07-03 14:56:42 +08:00
armink 074bdee64f [tsdb&kvdb] improve the control function. 2020-06-28 00:20:18 +08:00
armink 145991e6eb [fdb] remove unused function. 2020-06-28 00:19:42 +08:00
armink 9ea4a0e729 [tsdb&kvdb] improve the database control function. 2020-06-28 00:03:31 +08:00
armink 2673a71ca8 [tsdb] add rollover control feature. 2020-06-27 23:28:50 +08:00
timchen 3bd9e35c36 update src/fdb_kvdb.c.
Fix address access out of bounds
2020-06-18 09:00:34 +08:00
armink ce218827bf [tsdb] Fix armcc build warning. 2020-05-31 23:41:49 +08:00
armink dc7fd4f641 Update the fdb initialization 2020-05-31 19:01:32 +08:00
armink 85c7539833 Modify the directory structure. 2020-05-31 13:58:08 +08:00