Summary: | misleading error method when database locked | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Martin Schmettow <schmettow> |
Component: | Database-Schema | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, marcel.wiesweg |
Priority: | NOR | ||
Version: | 0.10.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.10.0 |
Description
Martin Schmettow
2008-12-20 23:15:13 UTC
Do you have any of the messages printed on the console? Was the exact error message that popped up "The schema updating process from version 4 to 5 failed, caused by an error that we did not expect. You can try to discard your old database and start with an empty one..."? Yes, this was the error message. Meanwhile I tried to reproduce the problem by starting a second instance of digikam, but without success. Btw. is it safe to have two instances running on the same database? That's the point, there is no technical problem usually with opening the database files from different proccesses. You seem to have had a special situation. Accessing the file failed, which is interpreted as an empty/new file, so upgrade is attempted. I dont quite know how to tell the difference in our code. SVN commit 900734 by mwiesweg: Check that creating a transaction succeeds before attempting to upgrade database. This might catch unclear errors where a file exists but is somehow locked. CCBUG: 178326 M +12 -1 schemaupdater.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=900734 I did some guesswork and came up with that commit. Do have any idea how to reproduce your problem? Otherwise I would close this file; I tried to have a digikam instance running, I tried to remove read rights from the db file, the first just works, the second is caught before. No more actions to be expected here. Reopen in case of new findings. |