Skip to content

Commit

Permalink
Merge pull request #1792 from Expensify/ionatan_logblankcommit
Browse files Browse the repository at this point in the history
Log if we are committing a blank query
  • Loading branch information
tylerkaraszewski authored Jul 2, 2024
2 parents f59a237 + 9226dc4 commit e2a2e57
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 e2a2e57

Please sign in to comment.