Skip to content

Commit

Permalink
fix: remove mentions of auth_zones.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
sakateka committed Oct 29, 2024
1 parent f8cb2f1 commit d5033ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions services/authzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct auth_rrset {

/**
* Authoritative zone transfer structure.
* Create and destroy needs the auth_zones* biglock.
* Create and destroy operations are not thread-safe.
* The structure consists of different tasks. Each can be unowned (-1) or
* owner by a worker (worker-num). A worker can pick up a task and then do
* it. This means the events (timeouts, sockets) are for that worker.
Expand All @@ -200,9 +200,8 @@ struct auth_xfer {
rbnode_type node;

/** lock on this structure, and on the workernum elements of the
* tasks. First hold the tree-lock in auth_zones, find the auth_xfer,
* lock this lock. Then a worker can reassign itself to fill up
* one of the tasks.
* tasks. First lock this lock, then a worker can reassign itself
* to fill up one of the tasks.
* Once it has the task assigned to it, the worker can access the
* other elements of the task structure without a lock, because that
* is necessary for the eventloop and callbacks from that. */
Expand Down

0 comments on commit d5033ea

Please sign in to comment.