Skip to content

Conversation

@carlosms
Copy link
Contributor

While importing new file pairs SQLite to SQLite I was getting the error message "database is locked".
This commit fixes it closing the first connection instead of deferring it.

Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms carlosms requested a review from bzz February 27, 2018 12:00
Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

But we should avoid these kind of functions which doesn't fit in a window without scrolling, reuses variables inside it's scope and does different things. For example, I think this bug would be avoided if the existence of the Experiment would have been checked in a separated —and smaller— function.

Copy link
Contributor

@bzz bzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot, LGTM

@carlosms carlosms merged commit 93794db into src-d:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants