]> granicus.if.org Git - vnstat/commitdiff
replace SQLITE_CHECKPOINT_TRUNCATE with SQLITE_CHECKPOINT_RESTART due to limited...
authorTeemu Toivola <git@humdi.net>
Thu, 9 May 2019 20:43:58 +0000 (23:43 +0300)
committerTeemu Toivola <git@humdi.net>
Thu, 9 May 2019 20:43:58 +0000 (23:43 +0300)
src/dbsql.c

index 9ed9539ae228578614f07f4607f01e49fa0fd64b..84b9b0ad5adf3f243cef264464bb659226c2899a 100644 (file)
@@ -1058,7 +1058,7 @@ void db_walcheckpoint(void)
        timeused(__func__, 1);
        if (debug)
                printf("wal checkpoint");
-       sqlite3_wal_checkpoint_v2(db, NULL, SQLITE_CHECKPOINT_TRUNCATE, NULL, NULL);
+       sqlite3_wal_checkpoint_v2(db, NULL, SQLITE_CHECKPOINT_RESTART, NULL, NULL);
        timeused(__func__, 0);
 }