From 4190a8ce7398ebeaa4814e3d1befac59f02aa6c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 2 Jul 2023 22:27:48 +0200 Subject: [PATCH] Continued: - acquire lock as this command changes database --- fba/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fba/commands.py b/fba/commands.py index 73814f3..68af1bb 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1374,6 +1374,8 @@ def fetch_fedilist(args: argparse.Namespace) -> int: def update_nodeinfo(args: argparse.Namespace) -> int: logger.debug("args[]='%s' - CALLED!", type(args)) + locking.acquire() + if args.domain is not None and args.domain != "": logger.debug("Fetching args.domain='%s'", args.domain) database.cursor.execute("SELECT domain, software FROM instances WHERE domain = ?", [args.domain]) -- 2.39.5