lock-memory - won't fail if lock already exists #194
Labels
exp/novice
Someone with a little familiarity can pick up
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P3
Low: Not priority right now
status/ready
Ready to be worked
While working on the repo migration tool, I have noticed that the implementation of in-memory lock in
lock-memory.js
behaves in bit weird way as it will acquire lock even if there is already lock in place.It exposes function
locked()
, yet I have not found it used anywhere. But even then I think the correct behavior of any locking functionality should be to fail when there is a lock already present.I understand that in browser there might not be really concurrent processes, so I am just wondering if that was a design decision or is it a bug?
The text was updated successfully, but these errors were encountered: