fix: use _do_write for scoped reset delete to enable commit conflict retry

This commit is contained in:
Greyson LaLonde
2026-03-10 23:09:44 -04:00
parent 67bc64e82c
commit a15aa0fb97

View File

@@ -625,7 +625,7 @@ class LanceDBStorage:
return
prefix = scope_prefix.rstrip("/")
if prefix:
self._table.delete(f"scope >= '{prefix}' AND scope < '{prefix}/\uffff'")
self._do_write("delete", f"scope >= '{prefix}' AND scope < '{prefix}/\uffff'")
def optimize(self) -> None:
"""Compact the table synchronously and refresh the scope index.