Skip to content

Commit

Permalink
Log if we are committing a blank query
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiznia committed Jul 2, 2024
1 parent f59a237 commit 9226dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlitecluster/SQLite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9226dc4

Please sign in to comment.