projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f277828
)
core: make Database.rollback() non-throwing
author
Jens Georg
<mail@jensge.org>
Wed, 30 Sep 2009 11:37:48 +0000
(13:37 +0200)
committer
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Sat, 24 Oct 2009 13:43:25 +0000
(16:43 +0300)
src/rygel/rygel-database.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-database.vala
b/src/rygel/rygel-database.vala
index
39f5981
..
0982938
100644
(file)
--- a/
src/rygel/rygel-database.vala
+++ b/
src/rygel/rygel-database.vala
@@
-160,9
+160,10
@@
internal class Rygel.Database : Object {
}
}
- public void rollback ()
throws DatabaseError
{
+ public void rollback () {
if (this.db.exec ("ROLLBACK") != Sqlite.OK) {
- throw new DatabaseError.SQLITE_ERROR (db.errmsg ());
+ critical ("Failed to rollback transaction: %s",
+ db.errmsg ());
}
}
}