mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/home/jonas/src/mysql-4.1-fix
into mysql.com:/home/jonas/src/mysql-4.1 ndb/src/kernel/blocks/backup/Backup.cpp: Auto merged ndb/src/kernel/blocks/backup/Backup.hpp: Auto merged ndb/src/kernel/blocks/backup/BackupInit.cpp: Auto merged ndb/tools/restore/restore_main.cpp: Auto merged
This commit is contained in:
@ -258,11 +258,18 @@ main(int argc, char** argv)
|
||||
ndbout << "Failed to read " << metaData.getFilename() << endl << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
const BackupFormat::FileHeader & tmp = metaData.getFileHeader();
|
||||
const Uint32 version = tmp.NdbVersion;
|
||||
|
||||
ndbout << "Ndb version in backup files: "
|
||||
<< getVersionString(version, 0) << endl;
|
||||
|
||||
/**
|
||||
* check wheater we can restore the backup (right version).
|
||||
*/
|
||||
int res = metaData.loadContent();
|
||||
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
ndbout_c("Restore: Failed to load content");
|
||||
|
Reference in New Issue
Block a user