Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Oct 8, 2024
1 parent 0b0b099 commit 6fd1b60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gateway.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ static void handle_exec_sql_next(struct gateway *g,
static void handle_exec_sql_cb(struct exec *exec, int status)
{
tracef("handle exec sql cb status %d", status);
fprintf(stderr, "[INFO FOR COLE] handle exec sql cb %p %d finalizing\n", exec->stmt, status);
fprintf(stderr, "[INFO FOR COLE] handle exec sql cb req=%p stmt=%p %d finalizing\n", exec, exec->stmt, status);
struct gateway *g = exec->data;
struct handle *req = g->req;

Expand Down
6 changes: 3 additions & 3 deletions src/leader.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ void leader__close(struct leader *l)
int rc;
/* TODO: there shouldn't be any ongoing exec request. */
if (l->exec != NULL) {
fprintf(stderr, "[INFO FOR COLE] leader close %p\n", l->exec->stmt);
fprintf(stderr, "[INFO FOR COLE] leader close req=%p stmt=%p\n", l->exec, l->exec->stmt);

Check warning on line 191 in src/leader.c

View check run for this annotation

Codecov / codecov/patch

src/leader.c#L191

Added line #L191 was not covered by tests
assert(l->inflight == NULL);
l->exec->status = SQLITE_ERROR;
exec_done(l->exec, 0);

Check warning on line 194 in src/leader.c

View check run for this annotation

Codecov / codecov/patch

src/leader.c#L194

Added line #L194 was not covered by tests
} else {
fprintf(stderr, "[INFO FOR COLE] leader close nothing happening\n");
fprintf(stderr, "[INFO FOR COLE] leader close req=%p nothing happening\n", l->exec);
}
rc = sqlite3_close(l->conn);
if (rc != SQLITE_OK) {
Expand Down Expand Up @@ -459,7 +459,7 @@ static void exec_done(struct exec *req, int asyncness)
}
sm_fini(&req->sm);
req->leader->exec = NULL;
fprintf(stderr, "[INFO FOR COLE] exec_done clearing %p\n", req->stmt);
fprintf(stderr, "[INFO FOR COLE] exec_done clearing req=%p stmt=%p\n", req, req->stmt);
if (req->cb == NULL) {
fprintf(stderr, "[INFO FOR COLE] skip callback for %p because cb is NULL\n", req->stmt);

Check warning on line 464 in src/leader.c

View check run for this annotation

Codecov / codecov/patch

src/leader.c#L464

Added line #L464 was not covered by tests
} else if (asyncness != 0) {
Expand Down

0 comments on commit 6fd1b60

Please sign in to comment.