-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for unclosed lock in read-dbs #92
Conversation
var dinosaurs = db.sublevel('dinosaurs') | ||
|
||
;[robots, dinosaurs].map(function (lev, i) { | ||
lev.put('slogan', 1 === i ? 'rawr' : 'beep boop'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
is required since the rest of the file has no ;
's 😄
} | ||
var result = {} | ||
var stream = db.readStream() | ||
var error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not declarations do on top of scope?
callback(error || err, result) | ||
level(dir, { valueEncoding: valueEncoding }, function (err, db) { | ||
if (err) { | ||
if ( err.type === 'OpenError') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting: extra space ( err.type
…veldb are still compiled
c82aac6
to
31b9f21
Compare
Waiting for #95 to be merged. |
If the solution doesn't close the database a unclear error is printed. This PR adds the same error display that is used in other parts of the workshopper also when reading the database for a comparsion.
This PR fixes #42.