[Bugfix] Compensate cancelled duplex open, append and resume; fix serving README drift (#7636 Issues 1, 2, 3, 21) (#7785)
Signed-off-by: chickeyton <ngton2014@gmail.com> Signed-off-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
This commit is contained in:
19 files changed
+1697
-96
No files matched your search
@@ -280,9 +280,9 @@ class DuplexEngineSession:
|
||||
self._validate_fence(self.fence)
|
||||
self.lease.detach(self._clock())
|
||||
|
||||
def resume_lease(self, *, expected_lease_generation: int) -> int:
|
||||
def resume_lease(self, *, expected_lease_generation: int, control_id: str | None = None) -> int:
|
||||
self._validate_fence(self.fence)
|
||||
return self.lease.resume(self._clock(), expected_generation=expected_lease_generation)
|
||||
return self.lease.resume(self._clock(), expected_generation=expected_lease_generation, control_id=control_id)
|
||||
|
||||
def begin_lease_operation(self, fence: DuplexFence, operation_id: str) -> None:
|
||||
self._validate_fence(fence)
|
||||
|
||||
Reference in new issue
Block a user