Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d65edca7
Commit
d65edca7
authored
Feb 06, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#16873 -
Print creating of dd objects during ndb_restore
parent
49823765
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
storage/ndb/tools/restore/consumer_restore.cpp
storage/ndb/tools/restore/consumer_restore.cpp
+12
-10
No files found.
storage/ndb/tools/restore/consumer_restore.cpp
View file @
d65edca7
...
...
@@ -453,15 +453,15 @@ BackupRestore::object(Uint32 type, const void * ptr)
{
NdbDictionary
::
LogfileGroup
*
lg
=
m_logfilegroups
[
old
.
getDefaultLogfileGroupId
()];
old
.
setDefaultLogfileGroup
(
*
lg
);
info
<<
"Creating tablespace: "
<<
old
.
getName
()
<<
"..."
<<
flush
;
int
ret
=
dict
->
createTablespace
(
old
);
if
(
ret
)
{
NdbError
errobj
=
dict
->
getNdbError
();
err
<<
"Failed to create tablespace
\"
"
<<
old
.
getName
()
<<
"
\"
: "
<<
errobj
<<
endl
;
info
<<
"FAILED "
<<
errobj
<<
endl
;
return
false
;
}
debug
<<
"Created tablespace: "
<<
old
.
getName
()
<<
endl
;
info
<<
"done"
<<
endl
;
}
NdbDictionary
::
Tablespace
curr
=
dict
->
getTablespace
(
old
.
getName
());
...
...
@@ -491,15 +491,15 @@ BackupRestore::object(Uint32 type, const void * ptr)
if
(
!
m_no_restore_disk
)
{
info
<<
"Creating logfile group: "
<<
old
.
getName
()
<<
"..."
<<
flush
;
int
ret
=
dict
->
createLogfileGroup
(
old
);
if
(
ret
)
{
NdbError
errobj
=
dict
->
getNdbError
();
err
<<
"Failed to create logfile group
\"
"
<<
old
.
getName
()
<<
"
\"
: "
<<
errobj
<<
endl
;
info
<<
"FAILED"
<<
errobj
<<
endl
;
return
false
;
}
debug
<<
"Created logfile group: "
<<
old
.
getName
()
<<
endl
;
info
<<
"done"
<<
endl
;
}
NdbDictionary
::
LogfileGroup
curr
=
dict
->
getLogfileGroup
(
old
.
getName
());
...
...
@@ -532,12 +532,13 @@ BackupRestore::object(Uint32 type, const void * ptr)
<<
" to tablespace: oldid: "
<<
old
.
getTablespaceId
()
<<
" newid: "
<<
ts
->
getObjectId
()
<<
endl
;
old
.
setTablespace
(
*
ts
);
info
<<
"Creating datafile
\"
"
<<
old
.
getPath
()
<<
"
\"
..."
<<
flush
;
if
(
dict
->
createDatafile
(
old
))
{
err
<<
"Failed to create datafile
\"
"
<<
old
.
getPath
()
<<
"
\"
: "
<<
dict
->
getNdbError
()
<<
endl
;
info
<<
"FAILED "
<<
dict
->
getNdbError
()
<<
endl
;
return
false
;
}
info
<<
"done"
<<
endl
;
}
return
true
;
break
;
...
...
@@ -554,12 +555,13 @@ BackupRestore::object(Uint32 type, const void * ptr)
<<
" newid: "
<<
lg
->
getObjectId
()
<<
" "
<<
(
void
*
)
lg
<<
endl
;
old
.
setLogfileGroup
(
*
lg
);
info
<<
"Creating undofile
\"
"
<<
old
.
getPath
()
<<
"
\"
..."
<<
flush
;
if
(
dict
->
createUndofile
(
old
))
{
err
<<
"Failed to create undofile
\"
"
<<
old
.
getPath
()
<<
"
\"
: "
<<
dict
->
getNdbError
()
<<
endl
;
info
<<
"FAILED "
<<
dict
->
getNdbError
()
<<
endl
;
return
false
;
}
info
<<
"done"
<<
endl
;
}
return
true
;
break
;
...
...
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