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:
@@ -0,0 +1 @@
|
||||
Dannou
|
||||
@@ -0,0 +1 @@
|
||||
trippyogi
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user