Coder Social home page Coder Social logo

Comments (3)

armink avatar armink commented on July 26, 2024

FlashDB 本身是支持回滚的,即使是启用 FILE_MODE ,功能上同样也是支持的

就是底层文件系统选型时,是需要有掉电保护功能的支持,比如:littlefs 。如果掉电后,文件系统崩了,那 FlashDB 也无能为力了

from flashdb.

jjldc avatar jjldc commented on July 26, 2024

FlashDB的回滚是基于单个kv的status状态做的回滚吧?
API中只有fdb_kv_set单个kv的接口,没有set一组kv的接口。当连续设置一组kv时,也许要求1/2/3/4四个参数必须同时写入。当依次调用fdb_kv_set修改值期间出现断电等故障,可能出现1/2是新数据,3/4是旧数据的情况吧
我刚开始看代码,可能理解还不深,说错了请包涵。

from flashdb.

armink avatar armink commented on July 26, 2024

是的,现在只有单个 KV 的操作接口,毕竟是嵌入式设备相比还是功能简单了一些

单个 KV 出错后,回滚是支持的

from flashdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.