| 551 | static int g_purge_progress_lines; |
| 552 | |
| 553 | static void purge_log_sink(const char *line) { |
| 554 | if (!line || !strstr(line, "msg=incremental.purge")) { |
| 555 | return; |
| 556 | } |
| 557 | if (strstr(line, "msg=incremental.purge.progress")) { |
| 558 | g_purge_progress_lines++; |
| 559 | } |
| 560 | size_t used = strlen(g_purge_log); |
| 561 | (void)snprintf(g_purge_log + used, sizeof(g_purge_log) - used, "%s\n", line); |
| 562 | } |
| 563 | |
| 564 | /* #1300: the per-file purge after incremental.edge_snapshot logged nothing |
| 565 | * until it finished, so a stall there left no trace of where the run was. It |
nothing calls this directly
no outgoing calls
no test coverage detected