1
0
mirror of https://github.com/armink/FlashDB.git synced 2025-01-16 20:12:52 +08:00

Commit Graph

  • 85245cab7a
    Merge dadfcd258a1415628a343bec5ca2b223d81d09dd into 6710c6d57f235e0b679a3ac728d567a472a77b19 Bosiux 2025-01-02 05:42:40 +07:00
  • 6710c6d57f
    [demo][linux] Change an ordinary lock to a recursive lock (#339) master RiceChen 2024-12-30 12:32:36 +08:00
  • dbacc124d2 Change the variable to a static variable ricechen 2024-12-30 11:14:13 +08:00
  • 6bedddf01b Change an ordinary lock to a recursive lock ricechen 2024-12-30 10:53:32 +08:00
  • d44118ca82
    [fdb] Rename "fdb_cfg.h" to "fdb_cfg_template.h" in inc folder (#338) Rocky 2024-12-26 12:19:32 +08:00
  • d3d63b1663 Rename "fdb_cfg.h" to "fdb_cfg_template.h" linjieqiang 2024-12-26 10:32:31 +08:00
  • cf47f490bb
    [fdb] Fixed a bug with reversed arguments to the fwrite and fread functions for LIBC mode. (#333) MGlolenstine 2024-12-25 02:30:34 +01:00
  • 366632ee1e Fixed a bug with reversed arguments to the fwrite and fread functions for LIBC mode. MGlolenstine 2024-11-19 07:55:30 +01:00
  • 89bd19ac3c [doc] Update the CN doc armink 2024-10-20 20:08:09 +08:00
  • 714d6159e7
    [tsdb][read_sector_info]: fix flash overwrite when abnormal power loss (#316) 2.1.1 Mason-Zhang-X-C 2024-10-06 13:45:40 +08:00
  • 3870d737bf [tsdb][read_sector_info]: fix flash overwrite when abnormal power loss mason 2024-10-06 12:17:40 +08:00
  • f0af0eeda4 [fdb] Update the version number armink 2024-10-06 10:39:18 +08:00
  • 72a7905238 [kvdb] Improve the GC algorithm to solve the problem of failure to collection in some cases. armink 2024-10-05 22:53:52 +08:00
  • 92ed442cfc [test] update the autotest bsp and testcase to latest version armink 2024-09-17 17:29:42 +08:00
  • fd08d7f323
    [kvdb] fix null-pointer dereference (#314) 莫若麦香 2024-09-15 16:32:07 +08:00
  • c5c4f4b3ae [kvdb] fix null-pointer dereference FragrantRye 2024-09-15 09:56:25 +08:00
  • 523fd2052d
    zephyr: add flashdb as external module (#313) karthi012 2024-09-10 12:54:25 +05:30
  • c27d3b6f3e zephyr: add flashdb as external module Karthikeyan Krishnasamy 2024-07-25 10:09:53 +05:30
  • dadfcd258a typo fix bosiux 2024-08-31 22:02:27 +02:00
  • dbeee568b7 warnings fix Bosiux 2024-08-23 21:17:51 +02:00
  • a8e8dcad64
    [fdb_utils][_fdb_flash_write]: fix returned incorrect error code. (#300) Kenny Zhang 2024-07-26 09:44:36 +08:00
  • 8f80336b89
    [tsdb][read_sector_info]: fix read last valid tsl (#302) r0lsec 2024-07-25 19:36:10 +08:00
  • 35eb6cc0f3 [fdb_tsdb.c][read_sector_info]: fix read last valid tsl wuchushun 2024-07-15 16:02:05 +08:00
  • 142fc8af0f [fdb_utils][_fdb_flash_write]: fix returned incorrect error code. Kenny Zhang 2024-06-29 21:30:58 +08:00
  • 725b23a506 fix: 修改fix lock issue to fix block on first run (#295)的实现 wangtao 2024-05-20 11:15:04 +08:00
  • 60675db070
    [fdb_kvdb] fix lock issue to fix block on first run (#295) Mr. Chip 2024-05-10 15:27:33 +08:00
  • 3206f58c99 [fdb_kvdb] fix lock issue to fix block on first run Mr.Chip 2024-05-10 14:44:33 +08:00
  • 86d00aa5fd
    [fdb] Fixes to build for IDF w/o errors (#293) Anuj Deshpande 2024-04-24 17:54:11 +05:30
  • 470ec6e8e7 Fixes to build for IDF w/o errors Anuj Deshpande 2024-04-24 10:58:10 +05:30
  • 77801ce3e4
    Add support for building esp32 demo under IDF 5.x (#292) Anuj Deshpande 2024-04-22 11:50:14 +05:30
  • 347bf14fa6 Add support for building esp32 demo under IDF 5.x Anuj Deshpande 2024-04-22 10:29:36 +05:30
  • 24305a9c76
    [kvdb] Clear cache before setting kv to default (#282) shihang-zhang 2024-03-22 00:51:56 -05:00
  • 5b6db1b228
    Update fdb_kvdb.c, remove sector cache clear. shihang-zhang 2024-03-22 00:25:18 -05:00
  • 058cbc200c fix: clear cache. shihang zhang 2024-03-21 20:59:57 -05:00
  • 64b07d7c4c
    Update README_zh.md (#281) guo 2024-03-15 13:43:52 +08:00
  • 720a411fc5
    Update README_zh.md guo 2024-03-15 10:28:38 +08:00
  • 7dfed14304
    [fdb_kvdb]: fix shadow warning (#272) _VIFEXTech 2024-01-02 13:55:00 +08:00
  • d95c6dc7f0 [fdb_kvdb]: fix shadow warning FASTSHIFT 2024-01-01 18:38:11 +08:00
  • 760520564c
    [fdb_kvdb] fix runtime error (#271) _VIFEXTech 2024-01-01 18:25:13 +08:00
  • c56fe829e6 [fdb_kvdb] fix runtime error FASTSHIFT 2023-12-29 00:06:32 +08:00
  • 0594fdc957
    [kvdb] Initialize only status explicitly (#267) Oleg Hahm 2023-12-08 09:40:45 +01:00
  • 86f5550e60
    [fdb] close stream pointer via fclose() (#268) Oleg Hahm 2023-12-08 09:38:51 +01:00
  • d4539493d0 [fdb] close stream pointer via fclose() Oleg Hahm 2023-12-07 23:10:25 +01:00
  • 7e3adbae13 [kvdb] Initialize only status explicitly Oleg Hahm 2023-12-06 21:57:03 +01:00
  • c1226f337a [kvdb] update some log level. 2.1.0 armink 2023-12-02 19:26:45 +08:00
  • 8056e17f29 [kvdb] remove unused lock. armink 2023-12-02 19:25:26 +08:00
  • 441d514da2 [fdb] update the version number to V2.1.0 armink 2023-11-19 12:36:13 +08:00
  • 718f73fbe6 [fdb] Add file access cache in file mode. The GC speed is up 2X. armink 2023-11-19 12:34:43 +08:00
  • 189b22e0a4 [fdb] Improve the database lock uses in init function. armink 2023-11-19 12:32:30 +08:00
  • cb84e2c41d [fdb] Improve FDB_ALIGN_DOWN macro. The align input parameter NOT depends on 2^N align number. armink 2023-11-19 11:34:48 +08:00
  • 5ebf8e6e8f [kvdb] Add kvdb inergrity check API. armink 2023-11-19 11:32:19 +08:00
  • 7e91b05483 [fdb] Add the lock in database init function. armink 2023-11-19 11:30:45 +08:00
  • 2dea1b2b88 [kvdb] Add more error logs. armink 2023-11-19 11:27:23 +08:00
  • a2c442435c [kvdb] Improve the kvdb cache performance. The GC will be 8x faster in file mode. armink 2023-11-19 11:26:48 +08:00
  • 3dca512285 [kvdb] Improve the GC speed when in recovery mode. armink 2023-11-19 11:06:12 +08:00
  • dc6121b448
    [fdb] fix warning (#258) _VIFEXTech 2023-11-12 13:27:43 +08:00
  • 92a9371890 [fdb] fix warning FASTSHIFT 2023-11-11 23:02:42 +08:00
  • 0d1b438947
    Add ability to append TSDB value at specific timestamp (#256) Valeriy Kucherenko 2023-11-09 14:27:52 +03:00
  • e577d6addb Add ability to append TSDB value at specific timestamp Valeriy Kucherenko 2023-11-07 16:50:27 +03:00
  • a208b1555b
    Fix invalid oldest address assignment (#255) shihang-zhang 2023-10-30 21:13:55 -05:00
  • bfc33d7ea8 feat: always update oldest address after sector GC. shihang zhang 2023-10-30 21:02:41 -05:00
  • 6f582b7f60 fix: fix invalid oldest address assignment after gc the last traversed sector. shihang zhang 2023-10-26 09:36:12 -05:00
  • 7bdef5eab7
    [fdb] Support 128bit write granularity for kvdb (#250) tinic 2023-10-16 19:01:43 -07:00
  • 389de3c7e2
    Update fdb_cfg.h to include 64bit and 128bit option. tinic 2023-10-16 18:27:50 -07:00
  • 8c5239c01a
    Update fdb_tsdb.c to include 128bit option tinic 2023-10-16 18:27:13 -07:00
  • 12f3960307 [kvdb] Fix testcase error from #251 armink 2023-10-16 21:25:01 +08:00
  • 7b2557f3e7
    [kvdb] interrupt iteraotor when read_section_info fails (#251) Lyon 2023-10-16 09:06:35 +08:00
  • a438284d5a
    Update src/fdb_kvdb.c Lyon 2023-10-15 22:48:30 +08:00
  • 1b371c166d
    Update src/fdb_kvdb.c Lyon 2023-10-15 21:52:41 +08:00
  • 2bdab72efa
    interrupt iteraotor when read_section_info failed Lyon 2023-10-15 18:11:31 +08:00
  • deae3d1d3f [fdb] Fixed build error. armink 2023-10-15 15:00:10 +08:00
  • c02f3f8573 [fdb] Update the fdb file mode log. armink 2023-10-15 14:31:38 +08:00
  • 1c68317574 [tsdb] Improve fdb_tsl_query_count return value. Delete the tsl_append assert check. armink 2023-10-15 11:49:37 +08:00
  • ab4c69f302 [fdb] Improve the fdb_kv_iterate. Only crc check OK kv will be iterated. armink 2023-10-15 11:46:28 +08:00
  • 5a8d7d0842 [fdb] Remove sector continuous mode assert check. It may trigger accidentally when db meta info has an error. armink 2023-10-15 11:36:50 +08:00
  • 1d2fc750f9 [kvdb] update the log armink 2023-10-15 11:24:56 +08:00
  • c8dd4ebe63 [kvdb] Fixed an issue where KVDB may not be able to automatically recover under extreme circumstances armink 2023-10-15 11:22:13 +08:00
  • b309810ff3
    Cleanup. tinic 2023-10-14 00:49:59 -07:00
  • e708318e48
    Support 128bit write granularity tinic 2023-10-14 00:28:46 -07:00
  • 09fa698f95
    [fdb] Relocate #include<unistd.h> (fixed #248) BecauseItIsThere 2023-10-12 18:51:19 +09:00
  • f74882e952 Relocate #include<unistd.h> BecauseItIsThere 2023-10-12 15:25:04 +09:00
  • 530cffcab1
    Merge pull request #247 from guoweilkd/master 朱天龙 (Armink) 2023-10-12 13:03:05 +08:00
  • 4aa2dbc6a4 fix FDB_ALIGN macro expansion errors guoweilkd 2023-10-12 11:01:02 +08:00
  • d2cae60cff fix db_lock()/db_unlock() not calling in pairs guoweilkd 2023-10-12 10:41:47 +08:00
  • 56b658e522
    [fdb]Replaced ~0UL in max value checks (#243) fzi-haxel 2023-10-06 08:35:55 +02:00
  • 003983dda3 Replaced ~0UL in max value checks Frederik Haxel 2023-09-27 11:52:50 +02:00
  • 3e441f6c26
    [inc/fdb_low_lvl] fix An error occurred in FDB_ALIGN(size, align) when align is not 2 to the nth power (#233) DarryZh 2023-08-17 18:01:48 +08:00
  • b8d15a323c [inc/fdb_low_lvl] fix An error occurred in FDB_ALIGN(size, align) when align is not 2 to the nth power Darryzh 2023-08-17 16:52:22 +08:00
  • fab8a16180
    [fdb] add missing assert.h include (#229) benpicco 2023-08-09 15:46:10 +02:00
  • 3ffec61729 [fdb] add missing assert.h include Benjamin Valentin 2023-08-09 14:02:22 +02:00
  • a4e68ae965
    [fdb] use native assert if FDB_USING_NATIVE_ASSERT is set (#228) benpicco 2023-08-09 13:55:20 +02:00
  • 7ecf36c58b [fdb] use native assert if FDB_USING_NATIVE_ASSERT is set Benjamin Valentin 2023-08-09 13:18:24 +02:00
  • 0110e3d467
    Merge 335a352139c1c8286748cbb5735435289ee8ef64 into d01c0d48aabf747978592d53f6ba35f94be65895 Giulio Dalla Vecchia 2023-08-09 13:25:17 +08:00
  • d01c0d48aa
    [port/fal] add option to use native assert() (#225) benpicco 2023-08-08 04:36:07 +02:00
  • 07dcd7f035
    [fdb] fix comparison of integer expressions of different signedness (#226) benpicco 2023-08-08 04:34:54 +02:00
  • 3d7f42be3f [fdb] fix comparison of integer expressions of different signedness Benjamin Valentin 2023-08-07 17:33:28 +02:00
  • 4daeb0a609 [port/fal] add option to use native assert() Benjamin Valentin 2023-08-07 17:23:48 +02:00
  • cc1c6f4d9f
    [kvdb] update _fdb_kv_load(fdb_kvdb_t db) (#219) grape-wzy 2023-06-10 13:30:15 +08:00
  • 6164330c75 @fdb_err_t _fdb_kv_load(fdb_kvdb_t db) zhaoyu.wu 2023-06-08 13:54:31 +08:00
  • 89796605c7
    [kvdb] improve kvdb cache algo when key was first found (#218) PostmanLinux 2023-06-05 22:53:41 +08:00