Repository navigation
Commit e2195dc
fix(graph-buffer): log why an atomic publish failed instead of a successful dump
cbm_gbuf_dump_to_sqlite() emitted gbuf.dump regardless of the writer's
result, so a run that published nothing still logged node and edge counts
as if it had worked, and the failure reached the user only as the generic
"Pipeline failed. Check repo_path exists and contains source files."
The writer's temp -> final rename in publish_writer_output() returned a
bare ERR_WRITE_FAILED. #1628 taught cbm_rename_replace() to translate the
platform error into errno so callers could report why, and wired up the
stage -> final rename in pipeline.c. This is the other rename on that
path, and it is the one that runs first.
Preserve errno across the cleanup unlink in the publish error branches,
read it in graph_buffer.c before the profiling macro can clobber it, and
report gbuf.dump_failed with the return code and that errno. No logging is
added inside internal/cbm/, which has none today.
Refs #1620, #2001.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012FxkVF773gDGNmBmsLnzN71 parent ffb5ebe commit e2195dc
3 files changed
Lines changed: 107 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
1759 | 1760 | | |
1760 | 1761 | | |
1761 | 1762 | | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1762 | 1767 | | |
1763 | 1768 | | |
1764 | 1769 | | |
1765 | 1770 | | |
1766 | 1771 | | |
1767 | 1772 | | |
1768 | 1773 | | |
| 1774 | + | |
1769 | 1775 | | |
1770 | 1776 | | |
1771 | 1777 | | |
| |||
1774 | 1780 | | |
1775 | 1781 | | |
1776 | 1782 | | |
| 1783 | + | |
1777 | 1784 | | |
1778 | 1785 | | |
1779 | 1786 | | |
1780 | 1787 | | |
| 1788 | + | |
1781 | 1789 | | |
1782 | 1790 | | |
1783 | 1791 | | |
1784 | 1792 | | |
1785 | 1793 | | |
1786 | 1794 | | |
1787 | 1795 | | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1788 | 1800 | | |
| 1801 | + | |
1789 | 1802 | | |
1790 | 1803 | | |
1791 | 1804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
1625 | 1626 | | |
1626 | 1627 | | |
1627 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1628 | 1646 | | |
1629 | 1647 | | |
1630 | 1648 | | |
| |||
1710 | 1728 | | |
1711 | 1729 | | |
1712 | 1730 | | |
| 1731 | + | |
1713 | 1732 | | |
1714 | 1733 | | |
1715 | 1734 | | |
| |||
1759 | 1778 | | |
1760 | 1779 | | |
1761 | 1780 | | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1762 | 1784 | | |
1763 | 1785 | | |
1764 | 1786 | | |
1765 | 1787 | | |
1766 | 1788 | | |
1767 | | - | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1768 | 1794 | | |
1769 | 1795 | | |
1770 | 1796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
1118 | 1122 | | |
1119 | 1123 | | |
1120 | 1124 | | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1121 | 1185 | | |
1122 | 1186 | | |
1123 | 1187 | | |
| |||
1188 | 1252 | | |
1189 | 1253 | | |
1190 | 1254 | | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1191 | 1258 | | |
0 commit comments