From fa22d8f2a99621f7a970798317da33af041729c0 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 2 Jul 2023 10:09:46 -0600 Subject: [PATCH] Log change --- lockable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lockable.go b/lockable.go index 0af1797..a7b9cff 100644 --- a/lockable.go +++ b/lockable.go @@ -368,7 +368,7 @@ func LockLockables(ctx * GraphContext, to_lock []Lockable, holder Lockable, hold // So if the owner is the same node we don't need a new state, but if the owner is a different node then we need to grab it's state and add it to the list if owner.ID() == req.ID() { if req_state.AllowedToTakeLock(holder.ID(), req.ID()) == false { - return fmt.Errorf("LOCKABLE_LOCK_ERR: %s is not allowed to take %s's lock from %s", holder.ID(), req.ID(), owner.ID()) + return fmt.Errorf("LOCKABLE_LOCK_ERR: %s is not allowed to take %s's lock from itself", holder.ID(), req.ID()) } // RECURSE: At this point either: // 1) req has no children and the next LockLockables will return instantly