Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updat should fail gracefully if another dat is already open on that dir #561
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mafintosh
Oct 28, 2016
Member
It cannot use level-party. Single master is required.
On Sat, 29 Oct 2016 at 00.46, Karissa McKelvey notifications@github.com
wrote:
- Run a dat in one directory (dat path/to/files)
- Open a new terminal
- Run a dat on that same directory (dat path/to/files)
It tries to open the db but its already open. It should probably fail
gracefully (give a nice message) or use level-party to just open it anyway
even though there's another one up alreadyevents.js:160
throw er; // Unhandled 'error' event
^
OpenError: IO error: lock tweet-data/.dat/LOCK: Resource temporarily unavailable
at /Users/karissa/node_modules/dat/node_modules/levelup/lib/levelup.js:119:34
at /Users/karissa/node_modules/dat/node_modules/leveldown/node_modules/abstract-leveldown/abstract-leveldown.js:39:16—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#561, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAW_VX8dXYZtDRgxVK_xtyrdFRHLdzccks5q4ntWgaJpZM4Kj7oN
.
|
It cannot use level-party. Single master is required.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
cool lets try to fail gracefully |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mafintosh
Oct 28, 2016
Member
|
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Part 1 of the fix is here: datproject/dat-node#28 |
karissa commentedOct 28, 2016
dat path/to/files)dat path/to/files)It tries to open the db but its already open. It should probably fail gracefully (give a nice message) or use level-party to just open it anyway even though there's another one up already