fix(state): route no-more-rows retries through the shared patience helper; add contributor mappings

The rebase onto main's extracted _sleep_before_write_retry() method left
three call sites pointing at the dropped local helper; rewire them.
Also adds contributors/emails mappings (Dannou, trippyogi, spfcraze).
This commit is contained in:
Teknium
2026-07-31 22:24:16 -07:00
parent b6ca4fc856
commit e008b62a72
3 changed files with 5 additions and 3 deletions
@@ -0,0 +1 @@
Dannou
+1
View File
@@ -0,0 +1 @@
trippyogi
+3 -3
View File
@@ -2471,12 +2471,12 @@ class SessionDB(SessionSearchMixin, SessionSchemaMixin, SessionPortabilityMixin)
"a large WAL checkpoint, or an older pre-update "
"process; the database itself is healthy)"
) from exc
if _is_no_more_rows(exc) and _sleep_before_retry():
if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):
continue
# Non-lock error or patience exhausted — propagate.
raise
except sqlite3.DatabaseError as exc:
if _is_no_more_rows(exc) and _sleep_before_retry():
if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):
continue
# Corrupt FTS shadow tables make every write raise the
# malformed/corrupt error class through the FTS sync triggers
@@ -2496,7 +2496,7 @@ class SessionDB(SessionSearchMixin, SessionSchemaMixin, SessionPortabilityMixin)
# subclass) or another sqlite3.Error class outside the two
# handlers above. Message-scoped: anything else propagates
# untouched.
if _is_no_more_rows(exc) and _sleep_before_retry():
if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):
continue
raise