diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-18 08:02:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-18 08:02:38 +0000 |
commit | e42eeb821f3b4e62faa2b0a32749384ce1bf4d04 (patch) | |
tree | 457a4bdb0fbc66ca7deaffe4b421c3e73d7a0e9c /src/datastore/plugin_datastore_sqlite.c | |
parent | c531c5a3c87baea69ab423181db1931b8058ed07 (diff) | |
download | gnunet-e42eeb821f3b4e62faa2b0a32749384ce1bf4d04.tar.gz gnunet-e42eeb821f3b4e62faa2b0a32749384ce1bf4d04.zip |
check version
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 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, | |||
1616 | uint64_t page_size; | 1616 | uint64_t page_size; |
1617 | 1617 | ||
1618 | plugin->stat_get = NULL; | 1618 | plugin->stat_get = NULL; |
1619 | if (plugin->stats_worked == GNUNET_NO) | 1619 | if ( (plugin->stats_worked == GNUNET_NO) && |
1620 | { | 1620 | (SQLITE_VERSION_NUMBER >= 3006000) ) |
1621 | { | ||
1621 | CHECK (SQLITE_OK == | 1622 | CHECK (SQLITE_OK == |
1622 | sqlite3_exec (plugin->dbh, | 1623 | sqlite3_exec (plugin->dbh, |
1623 | "VACUUM", NULL, NULL, ENULL)); | 1624 | "VACUUM", NULL, NULL, ENULL)); |