From e42eeb821f3b4e62faa2b0a32749384ce1bf4d04 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 18 May 2010 08:02:38 +0000 Subject: [PATCH] check version --- src/datastore/plugin_datastore_sqlite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 45fd05e6f..8df925864 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -1616,8 +1616,9 @@ process_stat_done (void *cls, uint64_t page_size; plugin->stat_get = NULL; - if (plugin->stats_worked == GNUNET_NO) - { + if ( (plugin->stats_worked == GNUNET_NO) && + (SQLITE_VERSION_NUMBER >= 3006000) ) + { CHECK (SQLITE_OK == sqlite3_exec (plugin->dbh, "VACUUM", NULL, NULL, ENULL)); -- 2.25.1