1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Added some commented debugging printouts & some assertions around

deletion to make sure we're deleting things.
This commit is contained in:
Patrick LeBlanc
2019-05-20 10:52:47 -05:00
parent 28495c7e90
commit b8d4891a18
2 changed files with 24 additions and 5 deletions

View File

@@ -195,10 +195,18 @@ int Replicator::remove(const boost::filesystem::path &filename, Flags flags)
try
{
boost::filesystem::remove_all(filename);
#ifndef NDEBUG
assert(boost::filesystem::remove_all(filename) > 0);
#else
boost::filesystem::remove_all(filename);
#endif
}
catch(boost::filesystem::filesystem_error &e)
{
#ifndef NDEBUG
cout << "Replicator::remove(): caught an execption: " << e.what() << endl;
assert(0);
#endif
errno = e.code().value();
ret = -1;
}