db: Add tracking of whether the current transaction is dirty

This commit is contained in:
Christian Decker
2019-12-18 19:26:23 +01:00
committed by neil saitug
parent 097af493dd
commit 09247d4f95
2 changed files with 17 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ struct db {
char *error;
struct log *log;
/* Were there any modifying statements in the current transaction?
* Used to bump the data_version in the DB.*/
bool dirty;
};
struct db_query {