You've already forked mariadb-columnstore-engine
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user