Skip to content

Commit

Permalink
simple fixes to fdb trace messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakash Arayambeth committed Jan 12, 2025
1 parent 1d1cffc commit cd106d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/fdb_bend_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ int fdb_svc_trans_rollback(char *tid, enum transaction_level lvl,
}

if (gbl_fdb_track) {
logmsg(LOGMSG_USER, "%p commiting tid=%s\n", (void *)pthread_self(),
logmsg(LOGMSG_USER, "%p rolling back tid=%s\n", (void *)pthread_self(),
us);
}

Expand Down Expand Up @@ -783,7 +783,7 @@ int fdb_svc_cursor_insert(sqlclntstate *clnt, char *tblname,
convert_failure_reason_str(&clnt->fail_reason, db->tablename,
"SQLite format", ".ONDISK", errs,
sizeof(errs));

logmsg(LOGMSG_ERROR, "%s:%d sqlite_to_ondisk failed. rc: %d, err: %s\n", __func__, __LINE__, rc, errs);
rc = -1;
free(row);
goto done;
Expand Down
4 changes: 2 additions & 2 deletions db/fdb_fend.c
Original file line number Diff line number Diff line change
Expand Up @@ -4171,7 +4171,7 @@ int fdb_trans_commit(sqlclntstate *clnt, enum trans_clntcomm sideeffects)
fdb_tran_t *tran, *tmp;
fdb_msg_t *msg;
int rc = 0;

uuidstr_t tus;
if (!dtran)
return 0;

Expand Down Expand Up @@ -4239,7 +4239,7 @@ int fdb_trans_commit(sqlclntstate *clnt, enum trans_clntcomm sideeffects)
}
}
if (gbl_fdb_track)
logmsg(LOGMSG_USER, "%s Send Commit tid=%llx db=\"%s\" rc=%d\n", __func__, *(unsigned long long *)tran->tid,
logmsg(LOGMSG_USER, "%s Send Commit tid=%s db=\"%s\" rc=%d\n", __func__, comdb2uuidstr((unsigned char *)tran->tid, tus),
tran->fdb->dbname, rc);
}

Expand Down

0 comments on commit cd106d6

Please sign in to comment.