django-mysql
django-mysql copied to clipboard
Re-entrant Lock
A follow-up to #89 . Using MariaDB's metadata_lock_info, a re-entrant lock, like threading.RLock, could be implemented, by querying INFORMATION_SCHEMA.metadata_lock_info each time to determine if this is the first enter on the lock or not. Would need to be thread safe.