From b7b50393ac15711a214575d479fc785162632e74 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Tue, 29 Oct 2024 15:05:11 +0200 Subject: [PATCH] locker_lock need not be recursive --- spinedb_api/db_mapping_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spinedb_api/db_mapping_base.py b/spinedb_api/db_mapping_base.py index 90c550b5..311a7052 100644 --- a/spinedb_api/db_mapping_base.py +++ b/spinedb_api/db_mapping_base.py @@ -12,7 +12,7 @@ from contextlib import suppress from difflib import SequenceMatcher from enum import Enum, auto, unique -from multiprocessing import RLock +from multiprocessing import Lock, RLock from typing import Set from .exception import SpineDBAPIError from .helpers import Asterisk @@ -45,7 +45,7 @@ def __init__(self): self.closed = False self._mapped_tables = {} self._fetched = {} - self._locker_lock = RLock() + self._locker_lock = Lock() self._locks = {} self._commit_count = None item_types = self.item_types()