fix: service deferred SD aborts everywhere

This commit is contained in:
torlando-agent[bot] committed 2026-08-07 01:37:13 +00:00
1 parent cc9794a66a
commit e2c8837a03
2 files changed
+30 -8

No files matched your search

@@ -89,3 +89,10 @@ def test_sd_abort_lock_timeout_defers_descriptor_close_without_leaking_it():
assert "else {\n abort_pending_ = true;\n }" in abort
assert "::close(write_fd_)" in service
assert "servicePendingAbortLocked()" in begin_write
for method in ("isAvailable", "beginRead", "readChunk", "endRead", "beginWrite",
"writeChunk", "commitWrite", "remove", "rename", "stat",
"beginList", "nextList", "endList"):
start = source.index(f"MapTileStoreSD::{method}")
next_method = source.find("MapTileStoreSD::", start + len(f"MapTileStoreSD::{method}"))
body = source[start:] if next_method < 0 else source[start:next_method]
assert "servicePendingAbortLocked()" in body, method