cvmfs/catalog_mgr_rw.cc
void WritableCatalogManager::RemoveFile(const std::string &path) {
  const string file_path = MakeRelativePath(path);
	const string parent_path = GetParentPath(file_path);

  SyncLock();
  WritableCatalog *catalog;
  if (!FindCatalog(parent_path, &catalog)) {
    LogCvmfs(kLogCatalog, kLogStderr, "catalog for file '%s' cannot be found",
             file_path.c_str());
    assert(false);
  }

  catalog->RemoveEntry(file_path);
  SyncUnlock();
}
/**
 * Remove the given file from the catalogs.
 * @param file_path the full path to the file to be removed
 * @return true on success, false otherwise
 */
Remove the given file from the catalogs.
@param file_path the full path to the file to be removed
@return true on success, false otherwise
Remove the given file from the catalogs . @param file_path the full path to the file to be removed @return true on success false otherwise
void WritableCatalogManager::RemoveFile(const std::string &path) {
  const string file_path = MakeRelativePath(path);
	const string parent_path = GetParentPath(file_path);
  SyncLock();
  WritableCatalog *catalog;
  if (!FindCatalog(parent_path, &catalog)) {
    LogCvmfs(kLogCatalog, kLogStderr, "catalog for file '%s' cannot be found",
             file_path.c_str());
    assert(false);
  }
  catalog->RemoveEntry(file_path);
  SyncUnlock();
}
void WritableCatalogManager :: RemoveFile ( const std :: string & path ) { const string file_path = MakeRelativePath ( path ) ; const string parent_path = GetParentPath ( file_path ) ; SyncLock ( ) ; WritableCatalog * catalog ; if ( ! FindCatalog ( parent_path , & catalog ) ) { LogCvmfs ( kLogCatalog , kLogStderr , " " , file_path . c_str ( ) ) ; assert ( false ) ; } catalog -> RemoveEntry ( file_path ) ; SyncUnlock ( ) ; }
Remove the given file from the catalogs.
Remove the given file from the catalogs .