Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Nov 21, 2022
1 parent 4cac151 commit 8dc07ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/leader.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ static void resetBarrierCb(struct barrier *barrier, int status)
}

#if SQLITE_VERSION_NUMBER >= 302400
#pragma message SQLITE_VERSION
vfs = sqlite3_vfs_find(l->db->config->name);
assert(vfs != NULL);
usage = VfsDatabaseMemoryUsage(vfs, l->db->filename);
Expand All @@ -480,6 +481,7 @@ static void resetBarrierCb(struct barrier *barrier, int status)
rv = sqlite3_db_config(l->conn, SQLITE_DBCONFIG_RESET_DATABASE, 1, 0);
assert(rv == 0);
exec->status = sqlite3_exec(l->conn, "VACUUM", NULL, NULL, NULL);
tracef("reset barrier cb exec status:%d", exec->status);
rv = sqlite3_db_config(l->conn, SQLITE_DBCONFIG_RESET_DATABASE, 0, 0);
assert(rv == 0);

Expand Down

0 comments on commit 8dc07ed

Please sign in to comment.