Comment 2 for bug 966896

Siegfried Gevatter (rainct) wrote :

@ James Mitchel:

Weird, that error doesn't really make sense. Anyway, you can fix it by deleting the file ~/.local/share/zeitgeist/activity.sqlite.


@ Zeitgeist devs:

We currently have the following code to handle errors in schema creation:

                    if (err is EngineError.DATABASE_CORRUPT && retry)
                        rc = Sqlite.CORRUPT;
                    else if (err is EngineError.DATABASE_CANTOPEN)
                        rc = Sqlite.CANTOPEN;
                    else if (err is EngineError.DATABASE_BUSY)
                        rc = Sqlite.BUSY;
                        throw err;

Do we want to change the else to also retire the DB?