Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
965047c1
Commit
965047c1
authored
Oct 03, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neomigrate: fix 'verbose' command line option
parent
b05f9c8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
CHANGES
CHANGES
+1
-0
neo/scripts/neomigrate.py
neo/scripts/neomigrate.py
+4
-7
No files found.
CHANGES
View file @
965047c1
...
...
@@ -6,6 +6,7 @@ Change History
- storage: a specific socket can be given to MySQL backend
- storage: a ConflictError could happen when client is much faster than master
- 'verbose' command line option of 'neomigrate' did not work
0.9.1 (2011-09-24)
------------------
...
...
neo/scripts/neomigrate.py
View file @
965047c1
...
...
@@ -23,8 +23,6 @@ import logging
import
time
import
os
from
neo.lib
import
setupLog
# register options
parser
=
OptionParser
()
parser
.
add_option
(
'-v'
,
'--verbose'
,
action
=
'store_true'
,
...
...
@@ -46,21 +44,20 @@ def main(args=None):
if
cluster
is
None
:
raise
RuntimeError
(
'The NEO cluster name must be supplied'
)
# set up logging
setupLog
(
'NEOMIGRATE'
,
None
,
options
.
verbose
or
False
)
# open storages
from
ZODB.FileStorage
import
FileStorage
#from ZEO.ClientStorage import ClientStorage as ZEOStorage
from
neo.client.Storage
import
Storage
as
NEOStorage
if
os
.
path
.
exists
(
source
):
src
=
FileStorage
(
file_name
=
source
)
dst
=
NEOStorage
(
master_nodes
=
destination
,
name
=
cluster
)
dst
=
NEOStorage
(
master_nodes
=
destination
,
name
=
cluster
,
verbose
=
options
.
verbose
)
else
:
print
(
"WARNING: due to a bug in FileStorage (at least up to ZODB trunk"
"@121629), output database may be corrupted if input database is"
" not packed."
)
src
=
NEOStorage
(
master_nodes
=
source
,
name
=
cluster
)
src
=
NEOStorage
(
master_nodes
=
source
,
name
=
cluster
,
verbose
=
options
.
verbose
)
dst
=
FileStorage
(
file_name
=
destination
)
# do the job
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment