cvmfs/catalog_rw.cc
void WritableCatalog::AddEntry(const DirectoryEntry &entry,
                               const string &entry_path,
                               const string &parent_path)
{
  SetDirty();

  hash::Md5 path_hash((hash::AsciiPtr(entry_path)));
  hash::Md5 parent_hash((hash::AsciiPtr(parent_path)));

  LogCvmfs(kLogCatalog, kLogVerboseMsg, "add entry %s", entry_path.c_str());

  bool retval =
    sql_insert_->BindPathHash(path_hash) &&
    sql_insert_->BindParentPathHash(parent_hash) &&
    sql_insert_->BindDirent(entry) &&
    sql_insert_->Execute();
  assert(retval);
  sql_insert_->Reset();

  delta_counters_.DeltaDirent(entry, 1);
}
/**
 * Adds a direcotry entry.
 * @param entry the DirectoryEntry to add to the catalog
 * @param entry_path the full path of the DirectoryEntry to add
 * @param parent_path the full path of the containing directory
 * @return true if DirectoryEntry was added, false otherwise
 */
Adds a direcotry entry.
@param entry the DirectoryEntry to add to the catalog
@param entry_path the full path of the DirectoryEntry to add
@param parent_path the full path of the containing directory
@return true if DirectoryEntry was added, false otherwise
Adds a direcotry entry . @param entry the DirectoryEntry to add to the catalog @param entry_path the full path of the DirectoryEntry to add @param parent_path the full path of the containing directory @return true if DirectoryEntry was added false otherwise
void WritableCatalog::AddEntry(const DirectoryEntry &entry,
                               const string &entry_path,
                               const string &parent_path)
{
  SetDirty();
  hash::Md5 path_hash((hash::AsciiPtr(entry_path)));
  hash::Md5 parent_hash((hash::AsciiPtr(parent_path)));
  LogCvmfs(kLogCatalog, kLogVerboseMsg, "add entry %s", entry_path.c_str());
  bool retval =
    sql_insert_->BindPathHash(path_hash) &&
    sql_insert_->BindParentPathHash(parent_hash) &&
    sql_insert_->BindDirent(entry) &&
    sql_insert_->Execute();
  assert(retval);
  sql_insert_->Reset();
  delta_counters_.DeltaDirent(entry, 1);
}
void WritableCatalog :: AddEntry ( const DirectoryEntry & entry , const string & entry_path , const string & parent_path ) { SetDirty ( ) ; hash :: Md5 path_hash ( ( hash :: AsciiPtr ( entry_path ) ) ) ; hash :: Md5 parent_hash ( ( hash :: AsciiPtr ( parent_path ) ) ) ; LogCvmfs ( kLogCatalog , kLogVerboseMsg , " " , entry_path . c_str ( ) ) ; bool retval = sql_insert_ -> BindPathHash ( path_hash ) && sql_insert_ -> BindParentPathHash ( parent_hash ) && sql_insert_ -> BindDirent ( entry ) && sql_insert_ -> Execute ( ) ; assert ( retval ) ; sql_insert_ -> Reset ( ) ; delta_counters_ . DeltaDirent ( entry , 1 ) ; }
Adds a direcotry entry.
Adds a direcotry entry .