[FIXED] Some lock inversions

The established ordering is client -> Account, so fixed few places
where we had Account -> client.

Added a new file, locksordering.txt with the list of known ordering
for some of the objects.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-03-08 17:52:56 -07:00
parent 7a98563ce6
commit 0fae8067ae
5 changed files with 63 additions and 43 deletions

5
locksordering.txt Normal file
View File

@@ -0,0 +1,5 @@
Here is the list of some established lock ordering.
In this list, A -> B means that you can have A.Lock() then B.Lock(), not the opposite.
jetStream -> jsAccount -> Server -> client-> Account