Commit 08a339eb authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY

Try to use nolock/readonly session

parent 82738607
......@@ -181,7 +181,7 @@ def create(args):
# the real work...
create_tables(args)
s = session(args.type, args.files[0], echo=(args.verbose >= 2))
s = session_try_nolock(args.type, args.files[0], echo=(args.verbose >= 2))
add_files(s, args.imagedir)
add_subworlds(s)
add_sessions(s)
......
......@@ -32,7 +32,7 @@ class Database(object):
self.session = None
else:
self.session = utils.session(INFO.type(), INFO.files()[0])
self.session = utils.session_try_readonly(INFO.type(), SQLITE_FILE)
def is_valid(self):
"""Returns if a valid session has been opened for reading the database"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment