check version
authorChristian Grothoff <christian@grothoff.org>
Tue, 18 May 2010 08:02:38 +0000 (08:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 18 May 2010 08:02:38 +0000 (08:02 +0000)
src/datastore/plugin_datastore_sqlite.c

index 45fd05e6fde107952871239333dbb7600517deb2..8df92586485d3086bdf9fdb5d2734841743a039b 100644 (file)
@@ -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));