You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4566 Fixes after review.
Added: 1. More output logs. 2. Save EM to file after rebuilding.
This commit is contained in:
committed by
Denis Khalikov
parent
5c5f103f98
commit
a591de666f
@ -89,8 +89,7 @@ int main(int argc, char** argv)
|
||||
std::cout << "The launch of mcsRebuildEM tool must be sanctioned by MariaDB support. "
|
||||
<< std::endl;
|
||||
std::cout << "Requirement: all DBRoots must be on this node. " << std::endl;
|
||||
std::cout << "Note: that the launch can break the cluster." << std::endl;
|
||||
std::cout << "Do you want to continue Y/N? " << std::endl;
|
||||
std::cout << "Do you want to continue Y/N? ";
|
||||
std::string confirmation;
|
||||
cin >> confirmation;
|
||||
if (confirmation.size() == 0)
|
||||
@ -124,6 +123,7 @@ int main(int argc, char** argv)
|
||||
std::cout << "If `BRM_saves_em` "
|
||||
"exists extent map will be restored from it. "
|
||||
<< std::endl;
|
||||
std::cout << "Exiting. " << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -131,6 +131,8 @@ int main(int argc, char** argv)
|
||||
auto rc = emReBuilder.initializeSystemExtents();
|
||||
if (rc == -1)
|
||||
{
|
||||
std::cerr << "Cannot initialize system extents from binary blob." << std::endl;
|
||||
std::cerr << "Exiting. " << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -151,5 +153,8 @@ int main(int argc, char** argv)
|
||||
emReBuilder.clear();
|
||||
}
|
||||
|
||||
// Save restored extent map.
|
||||
emReBuilder.getEM().save(BRMSavesEM);
|
||||
std::cout << "Completed." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user