diff options
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index c4adb34fd..ef24199ca 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -426,23 +426,14 @@ sqlite_plugin_del (void *cls) | |||
426 | plugin->del_expired_stmt); | 426 | plugin->del_expired_stmt); |
427 | return GNUNET_SYSERR; | 427 | return GNUNET_SYSERR; |
428 | } | 428 | } |
429 | if (SQLITE_ROW != | 429 | if ( (SQLITE_ROW != |
430 | sqlite3_step (plugin->del_expired_stmt)) | 430 | sqlite3_step (plugin->del_expired_stmt)) || |
431 | { | 431 | (GNUNET_OK != |
432 | LOG_SQLITE (plugin->dbh, | 432 | GNUNET_SQ_extract_result (plugin->del_expired_stmt, |
433 | GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 433 | rs)) ) |
434 | "sqlite3_step"); | ||
435 | GNUNET_SQ_reset (plugin->dbh, | ||
436 | plugin->del_expired_stmt); | ||
437 | return GNUNET_SYSERR; | ||
438 | } | ||
439 | if (GNUNET_OK != | ||
440 | GNUNET_SQ_extract_result (plugin->del_expired_stmt, | ||
441 | rs)) | ||
442 | { | 434 | { |
443 | GNUNET_SQ_reset (plugin->dbh, | 435 | GNUNET_SQ_reset (plugin->dbh, |
444 | plugin->del_expired_stmt); | 436 | plugin->del_expired_stmt); |
445 | |||
446 | if (SQLITE_ROW != | 437 | if (SQLITE_ROW != |
447 | sqlite3_step (plugin->del_select_stmt)) | 438 | sqlite3_step (plugin->del_select_stmt)) |
448 | { | 439 | { |