Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not spam logs with catchup debugging #678

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sources/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static od_frontend_status_t od_frontend_local(od_client_t *client)
for (;;) {
/* local server is alwys null */
if (od_should_drop_connection(client, NULL)) {
/* Odyssey is in a state of completion, we done
/* Odyssey is in a state of completion, we done
* the last client's request and now we can drop the connection */

/* a sort of EAGAIN */
Expand Down Expand Up @@ -1228,7 +1228,7 @@ static od_frontend_status_t od_frontend_remote_client(od_relay_t *relay,
value_ptr->len) != 0) {
/*
* Raise error:
* client allocated prepared stmt with same name
* client allocated prepared stmt with same name
*/
return OD_ESERVER_WRITE;
}
Expand Down Expand Up @@ -1400,7 +1400,7 @@ static void od_frontend_remote_client_on_read(od_relay_t *relay, int size)
od_stat_recv_client(stats, size);
}

/*
/*
* machine_sleep with ODYSSEY_CATCHUP_RECHECK_INTERVAL value
* will be effitiently just a context switch.
*/
Expand Down Expand Up @@ -1526,8 +1526,8 @@ od_frontend_check_replica_catchup(od_instance_t *instance, od_client_t *client)
}

if (catchup_timeout) {
od_log(&instance->logger, "catchup", client, NULL,
"checking for lag before doing any actual work");
od_debug(&instance->logger, "catchup", client, NULL,
"checking for lag before doing any actual work");
status = od_frontend_poll_catchup(client, route,
catchup_timeout);
}
Expand Down
Loading