1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol
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
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
db Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
derp Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
mapper Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
notifier Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
policy Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
templates update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
types Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
util embed (hidden) tailsql for debugging (#1663) 2023-12-20 21:47:48 +01:00
app.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
auth_noise.go Remove support for non-noise clients (pre-1.32) (#1611) 2023-11-23 08:31:33 +01:00
auth.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
grpcv1.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
handlers.go Remove support for non-noise clients (pre-1.32) (#1611) 2023-11-23 08:31:33 +01:00
metrics.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
noise.go move derp.go to derp module 2023-06-08 16:34:15 +02:00
oidc.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
platform_config.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
poll_noise.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
poll.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
suite_test.go Remove support for non-noise clients (pre-1.32) (#1611) 2023-11-23 08:31:33 +01:00
tailsql.go embed (hidden) tailsql for debugging (#1663) 2023-12-20 21:47:48 +01:00