headscale/hscontrol/db
Kristoffer Dalby 83769ba715
Replace database locks with transactions (#1701)
This commits removes the locks used to guard data integrity for the
database and replaces them with Transactions, turns out that SQL had
a way to deal with this all along.

This reduces the complexity we had with multiple locks that might stack
or recurse (database, nofitifer, mapper). All notifications and state
updates are now triggered _after_ a database change.


Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-02-08 17:28:19 +01:00
..
addresses_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
addresses.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
db.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
node_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
node.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
preauth_keys_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
preauth_keys.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
routes_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
routes.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
suite_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
users_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
users.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00