Coder Social home page Coder Social logo

Comments (10)

armink avatar armink commented on July 26, 2024

你说的是这里吗?

image

from flashdb.

mrsuiqi avatar mrsuiqi commented on July 26, 2024

是的

from flashdb.

armink avatar armink commented on July 26, 2024

看着确实是个 bug

应该是从 sector->addr + SECTOR_HDR_DATA_SIZEsector->addr + db_sec_size(db)

from flashdb.

mrsuiqi avatar mrsuiqi commented on July 26, 2024

起始地址的话,看了下应该是没什么问题,只是逻辑比较绕。终止地址sector->addr+db_sec_size(db)更合理。

from flashdb.

armink avatar armink commented on July 26, 2024

嗯,那你改下真机试试哈,没问题的话可以提交 PR 上来 😄

from flashdb.

joechenchen avatar joechenchen commented on July 26, 2024

@mrsuiqi,兄弟,不提交PR吗?

from flashdb.

mrsuiqi avatar mrsuiqi commented on July 26, 2024

from flashdb.

likyo avatar likyo commented on July 26, 2024

同样遇到这个问题,最后定位到一个扇区的结尾才会出现此问题,修改后验证OK,线上的还是有bug的,作者还是尽快提交吧

from flashdb.

joechenchen avatar joechenchen commented on July 26, 2024

看代码起始地址之前加过SECTOR_HDR_DATA_SIZE,我这边是修改成addr = find_next_kv_addr(db, addr , sector->addr + db_sec_size(db)),难道我理解错误了

from flashdb.

armink avatar armink commented on July 26, 2024

看代码起始地址之前加过SECTOR_HDR_DATA_SIZE,我这边是修改成addr = find_next_kv_addr(db, addr , sector->addr + db_sec_size(db)),难道我理解错误了

多谢反馈,已经改正了

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.