diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-05-18 08:02:38 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-05-18 08:02:38 +0000 |
commit | 3c81046545e0df7288c26a666a79f41f476127c6 (patch) | |
tree | 457a4bdb0fbc66ca7deaffe4b421c3e73d7a0e9c /src/datastore/plugin_datastore_sqlite.c | |
parent | 0d4d002521880c3ae691d37501b83040227f9a97 (diff) |
check version
git-svn-id: https://gnunet.org/svn/gnunet@11414 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 45fd05e6fd..8df9258648 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)); |