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
fde60595
Commit
fde60595
authored
Apr 25, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb_restore: more compatablitity checks
parent
e005a690
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
storage/ndb/tools/restore/restore_main.cpp
storage/ndb/tools/restore/restore_main.cpp
+20
-1
No files found.
storage/ndb/tools/restore/restore_main.cpp
View file @
fde60595
...
...
@@ -483,10 +483,29 @@ main(int argc, char** argv)
char
buf
[
NDB_VERSION_STRING_BUF_SZ
];
info
<<
"Ndb version in backup files: "
<<
getVersionString
(
version
,
0
,
buf
,
sizeof
(
buf
))
<<
endl
;
/**
* check wheater we can restore the backup (right version).
*/
// in these versions there was an error in how replica info was
// stored on disk
if
(
version
>=
MAKE_VERSION
(
5
,
1
,
3
)
&&
version
<=
MAKE_VERSION
(
5
,
1
,
9
))
{
err
<<
"Restore program incompatible with backup versions between "
<<
getVersionString
(
MAKE_VERSION
(
5
,
1
,
3
),
0
,
buf
,
sizeof
(
buf
))
<<
" and "
<<
getVersionString
(
MAKE_VERSION
(
5
,
1
,
9
),
0
,
buf
,
sizeof
(
buf
))
<<
endl
;
exitHandler
(
NDBT_FAILED
);
}
if
(
version
>
NDB_VERSION
)
{
err
<<
"Restore program older than backup version. Not supported. "
<<
"Use new restore program"
exitHandler
(
NDBT_FAILED
);
}
debug
<<
"Load content"
<<
endl
;
int
res
=
metaData
.
loadContent
();
...
...
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