Commit 430b6ea9 authored by Julien Muchembled's avatar Julien Muchembled

neomigrate: open source FileStorage read-only

parent d5c469be
...@@ -49,7 +49,7 @@ def main(args=None): ...@@ -49,7 +49,7 @@ def main(args=None):
#from ZEO.ClientStorage import ClientStorage as ZEOStorage #from ZEO.ClientStorage import ClientStorage as ZEOStorage
from neo.client.Storage import Storage as NEOStorage from neo.client.Storage import Storage as NEOStorage
if os.path.exists(source): if os.path.exists(source):
src = FileStorage(file_name=source) src = FileStorage(file_name=source, read_only=True)
dst = NEOStorage(master_nodes=destination, name=cluster, dst = NEOStorage(master_nodes=destination, name=cluster,
verbose=options.verbose) verbose=options.verbose)
else: else:
......
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