diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-02 19:04:17 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-02 19:04:17 +0000 |
commit | 3f9e647ae8c4928a8fc4de0d704119245f58ff45 (patch) | |
tree | f5cddacb0105de63d88537ff83085bef0c691ef6 /src/libstore/local-store.cc | |
parent | d8c5745c41de1a1217cfeac2d4af85146cb87e0f (diff) |
* checkInterrupt() shouldn't be called from a destructor.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 95e775ce7..8a690b913 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -47,6 +47,7 @@ SQLite::~SQLite() void SQLiteStmt::create(sqlite3 * db, const string & s) { + checkInterrupt(); assert(!stmt); if (sqlite3_prepare_v2(db, s.c_str(), -1, &stmt, 0) != SQLITE_OK) throw SQLiteError(db, "creating statement"); @@ -56,7 +57,6 @@ void SQLiteStmt::create(sqlite3 * db, const string & s) void SQLiteStmt::reset() { - checkInterrupt(); assert(stmt); if (sqlite3_reset(stmt) != SQLITE_OK) throw SQLiteError(db, "resetting statement"); |