MPExtended/MPExtended — Issue #180: Concurrent database access causes problems
Author: oxan
Created: 2012-02-21 20:53:12+00:00
State: open
Labels: mas, plugins

```
[21:49:39] ohhhhh that was the other thing
[21:49:58] ?
[21:50:03] if WebMP trys to read from the DB while an import is going on
[21:50:08] it borks the database
[21:50:11] yeah indeed
[21:50:14] easy to fix
[21:50:17] ahhh kk
[21:50:30] which fix did you want to propose?
[21:50:36] oh, and which plugin?
[21:50:56] oh no.... i dont know how to fix it using code and what not
[21:51:04] but if u open the db again after it borks
[21:51:11] it fixes it self
[21:51:17] TV-Series
[21:51:46] hmm yeah, TV series uses an way too old sqlite library indeed
[21:51:55] ahhh kk
[21:52:04] reopening it might be a good solution indeed
[21:52:18] ya i just run the import again... and it fixes tiself
```

Another option would be t o have an exclusive filesystem lock on the database while reading from it, but I'm not sure the importers and MP itself will handle that well. In any case there needs to be done something about it.