fix(scheduler): downgrade routine EEXIST resync log, dedup hash_string
xce_core_push_events() WARNed on every JOBS_PUSH resync redelivery (sched_add_job rc=-EEXIST), which is the expected outcome under on_scheduler_join()'s full resync or the array-push dedup race (bug-1734/bug-1714) and flooded operational logs. Only that case now logs via a new DBG() macro (utils.h); any other add_rc (e.g. -ENOMEM) still WARNs. DBG is named to avoid colliding with the build's own -DDEBUG command-line define (debug/asan buildtypes). Also collapsed hash_string()'s duplicated djb2 loop to delegate to hash_block(), which already implements the same RUN_HASH loop. Logged as bug-1809 in .wolf/buglog.json. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RLSNJhNoULvVcUhXEFafQC
This commit is contained in:
parent
868c6427c8
commit
b7250c2ec6
7 changed files with 115 additions and 19 deletions
|
|
@ -4707,3 +4707,17 @@
|
|||
| 08:07 | Edited src/harness/testsuite/test_test_cli.c | added 1 condition(s) | ~86 |
|
||||
| 08:07 | Edited src/harness/testsuite/test_test_cli.c | added 1 condition(s) | ~95 |
|
||||
| 08:07 | Edited src/harness/testsuite/harness_test.c | modified that() | ~184 |
|
||||
| 16:16 | Session end: 6 writes across 3 files (SKILL.md, test_test_cli.c, harness_test.c) | 6 reads | ~7319 tok |
|
||||
|
||||
## Session: 2026-09-14 16:16
|
||||
|
||||
| Time | Action | File(s) | Outcome | ~Tokens |
|
||||
|------|--------|---------|---------|--------|
|
||||
| 16:22 | Edited src/include/utils.h | 3→5 lines | ~35 |
|
||||
| 16:22 | Edited src/scheduler/src/core_events.c | added 1 condition(s) | ~371 |
|
||||
| 16:22 | Edited src/scheduler/src/core_events.c | 1804 → 1809 | ~20 |
|
||||
| 16:23 | Edited src/include/utils.h | 5→3 lines | ~23 |
|
||||
| 16:24 | Edited src/scheduler/src/core_events.c | modified if() | ~347 |
|
||||
| 16:30 | Edited src/lib/utils.c | modified hash_string() | ~24 |
|
||||
| 19:34 | Edited src/include/utils.h | expanded (+6 lines) | ~113 |
|
||||
| 19:34 | Edited src/scheduler/src/core_events.c | DEBUG() → DBG() | ~325 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue