Commit Graph
100 Commits
Author SHA1 Message Date
armink 7e91b05483 [fdb] Add the lock in database init function. 2023-11-19 11:30:45 +08:00
armink 2dea1b2b88 [kvdb] Add more error logs. 2023-11-19 11:27:23 +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
armink 3dca512285 [kvdb] Improve the GC speed when in recovery mode. 2023-11-19 11:06:12 +08:00
armink 12f3960307 [kvdb] Fix testcase error from #251 2023-10-16 21:25:01 +08:00
armink deae3d1d3f [fdb] Fixed build error. 2023-10-15 15:00:10 +08:00
armink c02f3f8573 [fdb] Update the fdb file mode log. 2023-10-15 14:31:38 +08:00
armink 1c68317574 [tsdb] Improve fdb_tsl_query_count return value. Delete the tsl_append assert check. 2023-10-15 11:49:37 +08:00
armink ab4c69f302 [fdb] Improve the fdb_kv_iterate. Only crc check OK kv will be iterated. 2023-10-15 11:46:28 +08:00
armink 5a8d7d0842 [fdb] Remove sector continuous mode assert check. It may trigger accidentally when db meta info has an error. 2023-10-15 11:36:50 +08:00
armink 1d2fc750f9 [kvdb] update the log 2023-10-15 11:24:56 +08:00
armink c8dd4ebe63 [kvdb] Fixed an issue where KVDB may not be able to automatically recover under extreme circumstances 2023-10-15 11:22:13 +08:00
朱天龙 (Armink)andGitHub 530cffcab1 Merge pull request #247 from guoweilkd/master
fix db_lock()/db_unlock() not calling in pairs
2023-10-12 13:03:05 +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) 55fd31eeb3 [fdb] update FDB_SECTOR_CACHE_TABLE_SIZE to 8 2023-05-28 19:01:06 +08:00
朱天龙 (Armink) 7451fbbdbe [tsdb] fix testcase heap-use-after-free error 2023-05-20 21:12:24 +08:00
朱天龙 (Armink) 9275b44f46 [kvdb] fix testcase build warning 2023-05-20 09:40:06 +08:00
朱天龙 (Armink) ec95540ebc [tsdb] update testcase only using file mode 2023-05-19 23:03:34 +08:00
朱天龙 (Armink) dab9d2bba9 [kvdb] add db size scale up testcase 2023-05-19 21:58:02 +08:00
朱天龙 (Armink) 3c80fa5679 [kvdb] add align padding for 64bit write granularity mode 2023-05-16 09:50:17 +08:00
朱天龙 (Armink) 53de94f82c [fdb] update the version number to 2.0.0 2023-05-14 22:00:41 +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) 5c5eff8d2b [testcase] update the kvdb testcase 2023-05-07 21:26:55 +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) 8f009ec057 [doc] fix the badge in the doc 2023-04-30 11:30:19 +08:00
朱天龙 (Armink) 37e0597803 [kvdb] fix testcase running error on ci env 2023-04-30 11:28:35 +08:00
朱天龙 (Armink) d3eaa54ccc [kvdb] fix testcase build error. 2023-04-30 00:01:31 +08:00
朱天龙 (Armink) aa3a194527 [kvdb][testcase] improve the kvdb testcase for GC 2023-04-29 23:52:00 +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
朱天龙 (Armink) dfd25b3b04 [ci] remove travis 2023-04-21 10:30:52 +00:00
朱天龙 (Armink)andGitHub 7e38f8ca6f Update main.yml 2023-04-21 17:52:25 +08:00
朱天龙 (Armink)andGitHub 94b94eb675 Update main.yml 2023-04-21 17:49:20 +08:00
朱天龙 (Armink)andGitHub fcff17f53d [ci] add github action 2023-04-21 17:42:09 +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
朱天龙 (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
朱天龙 (Armink)andGitHub 043af70d5b Merge pull request #200 from eternal-echo/tc397
支持tc397擦除后为0的flash
2023-02-17 14:38:18 +08:00
朱天龙 (Armink)andGitHub f21e80fbc4 Merge pull request #191 from shihang-zhang/b_fix_grain_64_issue
fix: use aligned macro to replace unaligned sizeof structure.
2023-02-01 16:31:12 +08:00
朱天龙 (Armink) eb975b3598 [tsdb] improve the testcase for database bound. 2022-08-27 15:13:24 +08:00
朱天龙 (Armink) ee634fec10 [tsdb] add the locker in iterator. 2022-08-27 13:49:08 +08:00
朱天龙 (Armink) 33385f4051 [tsdb] improve the testcase coverage. 2022-08-27 13:42:40 +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
朱天龙 (Armink) 5e5067d2e3 [kvdb] update the testcase 2022-08-27 13:26:37 +08:00
朱天龙 (Armink) a5aa4026fd [fdb] format the code. 2022-08-27 13:24:56 +08:00
朱天龙 (Armink) 1ebcefec45 [doc] update the doc 2022-08-27 13:24:09 +08:00
朱天龙 (Armink)andGitHub 0bc7b01834 Merge pull request #172 from Spider84/feature/stm32l4
Add STM32L4 fal_flash port
2022-08-24 15:52:49 +08:00
朱天龙 (Armink) 6204074c9d [doc] update doc 2022-08-10 10:08:00 +08:00
朱天龙 (Armink)andGitHub cf00f736bf Merge pull request #163 from armink/revert-158-master
Revert "Abandon the verification of the data whose status is deleted"
2022-07-02 21:08:00 +08:00
朱天龙 (Armink)andGitHub 9c53806e9e Revert "Abandon the verification of the data whose status is deleted" 2022-07-02 21:07:41 +08:00
朱天龙 (Armink)andGitHub 1914fd2511 Merge pull request #158 from chwncy/master
Abandon the verification of the data whose status is deleted
2022-06-15 23:43:19 +08:00
朱天龙 (Armink) 92052b70bc [tsdb] fix ci build error. 2022-06-12 15:52:05 +08:00
朱天龙 (Armink) 393773aa8a [doc] update the doc for reverse iterator. 2022-06-11 14:47:12 +08:00
朱天龙 (Armink) 4e393e1326 [tsdb] format the code style. 2022-06-11 14:39:13 +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
朱天龙 (Armink)andGitHub e3b1beed2b Merge pull request #145 from MikeTuev/MikeTuev-patch-reverse_iterator
Mike tuev patch reverse iterator
2022-05-18 20:16:37 +08:00
朱天龙 (Armink)andGitHub c175635358 Merge pull request #147 from T721/master
adding ifdef guards to update method. should only be called if cache is used
2022-04-25 15:30:01 +08:00
朱天龙 (Armink)andGitHub 76fff09a0a [doc] update demos readme 2022-04-25 14:18:34 +08:00
朱天龙 (Armink)andGitHub a7b33d810a Merge pull request #146 from kaans/feature/esp32_spi_flash_demo
Add demo project for esp32
2022-04-25 14:17:04 +08:00
朱天龙 (Armink) 7062902a3e [fdb] update the version number to V1.1.2 2022-03-28 17:24:43 +08:00
armink 24544704ed [port/fal] Update the FAL to latest version. 2022-02-11 11:39:34 +08: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)andGitHub bf3ac9ecaa Merge pull request #109 from mysterywolf/master
update for RT-Thread v4.1.0
2021-12-04 14:08:19 +08:00
armink fad201a4d8 [fdb] Update the version to V1.1.0 2021-10-07 19:57:57 +08:00
armink 353f261008 [docs] Add file and FAL mode configuration. 2021-10-06 09:27:41 +08:00
armink 07db5a2242 [doc] Update the comment. 2021-10-02 16:57:37 +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 f3b3e61804 [doc] Update the docs to latest. 2021-10-02 12:00:15 +08:00
armink c9cfd4598c [fdb] Change the status's number from enum to definition. 2021-10-01 18:13:01 +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
朱天龙 (Armink)andGitHub cea7a06b9f Merge pull request #91 from iysheng/gran1
[fdb] Fix mismatch with the comments for status migration when FDB_WR…
2021-08-16 13:36:26 +08:00
armink 1bd704db0a [fdb] Fix 64bit timestamp build problem. 2021-08-09 21:44:11 +08:00
朱天龙 (Armink)andGitHub f57a591e2b Update .travis.yml 2021-08-09 21:18:45 +08:00
朱天龙 (Armink)andGitHub ea927315f3 Merge pull request #86 from Tennn11/master
【修改】write函数增加sync参数,KVDB和TSDB存储数据时减少sync次数
2021-08-09 21:07:10 +08:00
朱天龙 (Armink)andGitHub 5aebd38919 Merge pull request #83 from woniua/patch-1
Update sample-kvdb-type-string.md
2021-07-28 10:28:05 +08:00
armink 1ddd18c03b [tsdb] Fix tsdb rollover bug. 2021-05-15 20:42:09 +08:00
朱天龙 (Armink)andGitHub 980b355d71 Merge pull request #76 from enkiller/0425
There can be no default kv
2021-04-25 16:42:31 +08:00
armink c25198db19 [kvdb] Change the KV name default length to 64. 2021-04-16 18:27:38 +08:00
armink a83f873323 [demo] Fix the demo on linux. 2021-04-16 17:33:15 +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)andGitHub 165c1b7d1f [fdb] support C++ compiler 2021-04-12 20:21:56 +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