1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol/types
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
..
api_key.go
common.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
config.go Trim client secret after reading from file (#1697) 2024-01-25 09:53:34 +01:00
const.go
node_test.go ensure online status and route changes are propagated (#1564) 2023-12-09 18:09:24 +01:00
node.go Add Customization Options to DERP Map entry of integrated DERP server (#1565) 2024-01-16 16:04:03 +01:00
preauth_key.go
routes_test.go ensure online status and route changes are propagated (#1564) 2023-12-09 18:09:24 +01:00
routes.go ensure online status and route changes are propagated (#1564) 2023-12-09 18:09:24 +01:00
users.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00