BIND 10 trac326, updated. c9f4fcacafa14ed788731c1e9714d54a930f3908 [326] and of course if forgot one update
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Aug 24 14:50:05 UTC 2011
The branch, trac326 has been updated
via c9f4fcacafa14ed788731c1e9714d54a930f3908 (commit)
from 6903d24d560d86647df8782b6840e49c85380e6d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c9f4fcacafa14ed788731c1e9714d54a930f3908
Author: Jelte Jansen <jelte at isc.org>
Date: Wed Aug 24 16:49:51 2011 +0200
[326] and of course if forgot one update
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/sqlite3_accessor.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/sqlite3_accessor.cc b/src/lib/datasrc/sqlite3_accessor.cc
index 6dbcc5b..3de8351 100644
--- a/src/lib/datasrc/sqlite3_accessor.cc
+++ b/src/lib/datasrc/sqlite3_accessor.cc
@@ -260,6 +260,7 @@ int create_database(sqlite3* db) {
for (int i = 0; SCHEMA_LIST[i] != NULL; ++i) {
if (sqlite3_exec(db, SCHEMA_LIST[i], NULL, NULL, NULL) !=
SQLITE_OK) {
+ sqlite3_exec(db, "ROLLBACK TRANSACTION", NULL, NULL, NULL);
isc_throw(SQLite3Error,
"Failed to set up schema " << SCHEMA_LIST[i]);
}
@@ -267,6 +268,7 @@ int create_database(sqlite3* db) {
sqlite3_exec(db, "COMMIT TRANSACTION", NULL, NULL, NULL);
return (SQLITE_SCHEMA_VERSION);
} else {
+ sqlite3_exec(db, "ROLLBACK TRANSACTION", NULL, NULL, NULL);
return (schema_version);
}
}
More information about the bind10-changes
mailing list