struct tevent_req *share_mode_watch_send(
TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
- struct file_id id,
+ struct share_mode_lock *lck,
struct server_id blocker)
{
- TDB_DATA key = locking_key(&id);
+ TDB_DATA key = locking_key(&lck->data->id);
struct tevent_req *req = NULL, *subreq = NULL;
struct share_mode_watch_state *state = NULL;
struct tevent_req *share_mode_watch_send(
TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
- struct file_id id,
+ struct share_mode_lock *lck,
struct server_id blocker);
NTSTATUS share_mode_watch_recv(
struct tevent_req *req, bool *blockerdead, struct server_id *blocker);
setup_retry:
subreq = share_mode_watch_send(
- state, state->ev, lck->data->id, blocking_pid);
+ state, state->ev, lck, blocking_pid);
if (tevent_req_nomem(subreq, req)) {
goto done;
}
watch_req = share_mode_watch_send(
watch_state,
req->sconn->ev_ctx,
- lck->data->id,
+ lck,
(struct server_id){0});
if (watch_req == NULL) {
exit_server("Could not watch share mode record");
open_rec->watch_req = share_mode_watch_send(
open_rec,
req->sconn->ev_ctx,
- lck->data->id,
+ lck,
(struct server_id) {0});
if (open_rec->watch_req == NULL) {
DBG_WARNING("share_mode_watch_send failed\n");
DBG_DEBUG("Watching share mode lock\n");
subreq = share_mode_watch_send(
- state, state->ev, lck->data->id, blocking_pid);
+ state, state->ev, lck, blocking_pid);
TALLOC_FREE(lck);
if (tevent_req_nomem(subreq, req)) {
return;
subreq = share_mode_watch_send(
rename_state,
ev,
- lck->data->id,
+ lck,
(struct server_id){0});
if (subreq == NULL) {