Skip to content

Commit

Permalink
Merge pull request #775 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
cead22 authored Apr 27, 2020
2 parents df80979 + b284398 commit fcbcbcb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sqlitecluster/SQLite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,10 @@ int SQLite::commit() {
SASSERT(result == SQLITE_OK || result == SQLITE_BUSY_SNAPSHOT);
if (result == SQLITE_OK) {
if (_currentTransactionAttemptCount != -1) {
const char* report = sqlite3_begin_concurrent_report(_db);
string logLine = SWHEREAMI + "[row-level-locking] transaction attempt:" +
to_string(_currentTransactionAttemptCount) + " committed. report: " +
sqlite3_begin_concurrent_report(_db);
(report ? string(report) : "null"s);
syslog(LOG_DEBUG, "%s", logLine.c_str());
}
_commitElapsed += STimeNow() - before;
Expand Down Expand Up @@ -872,9 +873,10 @@ void SQLite::rollback() {
}

if (_currentTransactionAttemptCount != -1) {
const char* report = sqlite3_begin_concurrent_report(_db);
string logLine = SWHEREAMI + "[row-level-locking] transaction attempt:" +
to_string(_currentTransactionAttemptCount) + " rolled back. report: " +
sqlite3_begin_concurrent_report(_db);
(report ? string(report) : "null"s);
syslog(LOG_DEBUG, "%s", logLine.c_str());
}

Expand Down

0 comments on commit fcbcbcb

Please sign in to comment.