mirror of https://gitee.com/bigwinds/arangodb
removed diagnostics
This commit is contained in:
parent
a47a9712af
commit
e9f4bd94c4
|
@ -748,26 +748,7 @@ void MMFilesEngine::dropCollection(TRI_vocbase_t* vocbase, arangodb::LogicalColl
|
|||
}
|
||||
LOG(ERR) << "cannot rename directory of dropped collection '" << name
|
||||
<< "' from '" << collection->path() << "' to '"
|
||||
<< newFilename << "': " << TRI_errno_string(res) << systemError
|
||||
<< ", source exists: " << TRI_IsDirectory(collection->path().c_str())
|
||||
<< ", dest exists: " << TRI_IsDirectory(newFilename.c_str())
|
||||
<< ", status: " << collection->statusString();
|
||||
|
||||
std::vector<std::string> files = TRI_FilesDirectory(collection->path().c_str());
|
||||
LOG(ERR) << "ALL FILES: " << files;
|
||||
for (auto const& f : files) {
|
||||
bool isDir = TRI_IsDirectory(f.c_str());
|
||||
std::string full = basics::FileUtils::buildFilename(collection->path(), f);
|
||||
LOG(ERR) << "- found: " << f << ", IS DIR: " << isDir;
|
||||
if (isDir) {
|
||||
LOG(ERR) << "- removing dir: " << TRI_RemoveDirectory(full.c_str());
|
||||
} else {
|
||||
LOG(ERR) << "- file: " << full << ", size: " << TRI_SizeFile(full.c_str());
|
||||
LOG(ERR) << "- removing file: " << TRI_UnlinkFile(full.c_str());
|
||||
}
|
||||
}
|
||||
LOG(ERR) << "ALL FILES AGAIN: " << TRI_FilesDirectory(collection->path().c_str());
|
||||
|
||||
<< newFilename << "': " << TRI_errno_string(res) << systemError;
|
||||
} else {
|
||||
LOG(DEBUG) << "wiping dropped collection '" << name
|
||||
<< "' from disk";
|
||||
|
|
Loading…
Reference in New Issue