Giter Site home page Giter Site logo

Question about `flockSync()` about flash-store HOT 3 CLOSED

huan avatar huan commented on July 20, 2024
Question about `flockSync()`

from flash-store.

Comments (3)

huan avatar huan commented on July 20, 2024

Please check if you close the flashStore instance correctly when you are resetting the puppet.

If you open a flash store workdir for the second time without close the previous one, you will not be able to get the lock.

That's by design, so we need to use LOCK_EX instead of LOCK_SH for flock. See: http://man7.org/linux/man-pages/man2/flock.2.html

from flash-store.

su-chang avatar su-chang commented on July 20, 2024

Thanks for your response, I have found the reason of this bug, one FlashStore has not been closed success. Everything is ok now!

Thanks for learning something about LOCK_EX and LOCK_SH too~

from flash-store.

huan avatar huan commented on July 20, 2024

Glad to know that. Cheers!

from flash-store.

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.