From 467038ff755c3bcd84df09a9a4174595958b6444 Mon Sep 17 00:00:00 2001 From: kaiserd Date: Wed, 29 Jun 2022 10:59:22 +0000 Subject: [PATCH] deploy: 3b60ea70c0d75c7bbbe9fc4094bd6f6371b6d6f4 --- vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool | 2 +- waku/v2/node/storage/message/waku_message_store.nim | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool index 85e27b36a..ab6389be0 100755 --- a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool +++ b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool @@ -2,7 +2,7 @@ # libtool - Provide generalized library-building support services. # Generated automatically by config.status (libbacktrace) version-unused -# Libtool was configured on host fv-az196-685: +# Libtool was configured on host fv-az39-123: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, diff --git a/waku/v2/node/storage/message/waku_message_store.nim b/waku/v2/node/storage/message/waku_message_store.nim index f08057497..6210cd0a5 100644 --- a/waku/v2/node/storage/message/waku_message_store.nim +++ b/waku/v2/node/storage/message/waku_message_store.nim @@ -100,11 +100,6 @@ proc deleteOldest(db: WakuMessageStore): MessageStoreResult[void] = let numMessages = messageCount(db.database).get() # requires another SELECT query, so only run in debug mode debug "Number of messages left after delete operation.", messagesLeft=numMessages - # reduce the size of the DB file after the delete operation. See: https://www.sqlite.org/lang_vacuum.html - let resVacuum = db.database.query("vacuum", proc(s: ptr sqlite3_stmt) = discard) - if resVacuum.isErr: - return err("vacuum after delete was not successful: " & resVacuum.error) - ok() proc init*(T: type WakuMessageStore, db: SqliteDatabase, storeCapacity: int = 50000, isSqliteOnly = false, retentionTime = chronos.days(30).seconds): MessageStoreResult[T] =