From 9226dc421cb445160b7d255e0836cc49fa9815d3 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Tue, 2 Jul 2024 20:50:00 +0200 Subject: [PATCH] Log if we are committing a blank query --- sqlitecluster/SQLite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sqlitecluster/SQLite.cpp b/sqlitecluster/SQLite.cpp index a4650c7cc..392433107 100644 --- a/sqlitecluster/SQLite.cpp +++ b/sqlitecluster/SQLite.cpp @@ -657,6 +657,9 @@ bool SQLite::prepare(uint64_t* transactionID, string* transactionhash) { // These are the values we're currently operating on, until we either commit or rollback. _sharedData.prepareTransactionInfo(commitCount + 1, _uncommittedQuery, _uncommittedHash, _dbCountAtStart); + if (_uncommittedQuery.empty()) { + SINFO("Will commmit blank query"); + } int result = SQuery(_db, "updating journal", query); _prepareElapsed += STimeNow() - before;