Add READ handler oplock break (Phase 5.5)
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

- Trigger oplock break before read if conflicting opens exist
- Use granted_access from Open struct
- Send notifications via notification_tx channel
- Fix WRITE handler granted_access source (from Tree)

All 229 tests pass.
This commit is contained in:
Warren
2026-06-21 01:13:35 +08:00
parent 2dd50e4cb6
commit 063a697e83
2 changed files with 34 additions and 2 deletions

View File

@@ -48,11 +48,17 @@ pub async fn handle(
(open.last_path.clone(), open.share_access)
};
// Get granted_access from tree
let granted_access = {
let tree = tree_arc.read().await;
tree.granted_access
};
// Trigger oplock break for conflicting clients
let notifications = server.oplock_manager.break_oplock(
&path,
share_access,
granted,
granted_access,
).await;
// Send notifications to affected clients