cvmfs/catalog_rw.cc
void WritableCatalog::InsertNestedCatalog(const string &mountpoint,
                                          Catalog *attached_reference,
                                          const hash::Any content_hash)
{
  const string sha1_string = (!content_hash.IsNull()) ?
                             content_hash.ToString() : "";

  Sql stmt(database(),
    "INSERT INTO nested_catalogs (path, sha1) VALUES (:p, :sha1);");
  bool retval =
    stmt.BindText(1, mountpoint) &&
    stmt.BindText(2, sha1_string) &&
    stmt.Execute();
  assert(retval);

  // If a reference of the in-memory object of the newly referenced
  // catalog was passed, we add this to our own children
  if (attached_reference != NULL)
    AddChild(attached_reference);

  delta_counters_.d_self_nested++;
}
/**
 * Insert a nested catalog reference into this catalog.
 * The attached catalog object of this mountpoint can be specified (optional)
 * This way, the in-memory representation of the catalog tree is updated, too
 * @param mountpoint the path to the catalog to add a reference to
 * @param attached_reference can contain a reference to the attached catalog
 *        object of mountpoint
 * @param content_hash can be set to safe a content hash together with the
 *        reference
 * @return true on success, false otherwise
 */
Insert a nested catalog reference into this catalog.
The attached catalog object of this mountpoint can be specified (optional)
This way, the in-memory representation of the catalog tree is updated, too
@param mountpoint the path to the catalog to add a reference to
@param attached_reference can contain a reference to the attached catalog
object of mountpoint
@param content_hash can be set to safe a content hash together with the
reference
@return true on success, false otherwise
Insert a nested catalog reference into this catalog . The attached catalog object of this mountpoint can be specified ( optional ) This way the in - memory representation of the catalog tree is updated too @param mountpoint the path to the catalog to add a reference to @param attached_reference can contain a reference to the attached catalog object of mountpoint @param content_hash can be set to safe a content hash together with the reference @return true on success false otherwise
void WritableCatalog::InsertNestedCatalog(const string &mountpoint,
                                          Catalog *attached_reference,
                                          const hash::Any content_hash)
{
  const string sha1_string = (!content_hash.IsNull()) ?
                             content_hash.ToString() : "";
  Sql stmt(database(),
    "INSERT INTO nested_catalogs (path, sha1) VALUES (:p, :sha1);");
  bool retval =
    stmt.BindText(1, mountpoint) &&
    stmt.BindText(2, sha1_string) &&
    stmt.Execute();
  assert(retval);
  if (attached_reference != NULL)
    AddChild(attached_reference);
  delta_counters_.d_self_nested++;
}
void WritableCatalog :: InsertNestedCatalog ( const string & mountpoint , Catalog * attached_reference , const hash :: Any content_hash ) { const string sha1_string = ( ! content_hash . IsNull ( ) ) ? content_hash . ToString ( ) : " " ; Sql stmt ( database ( ) , " " ) ; bool retval = stmt . BindText ( 1 , mountpoint ) && stmt . BindText ( 2 , sha1_string ) && stmt . Execute ( ) ; assert ( retval ) ; if ( attached_reference != NULL ) AddChild ( attached_reference ) ; delta_counters_ . d_self_nested ++ ; }
Insert a nested catalog reference into this catalog.
Insert a nested catalog reference into this catalog .
// If a reference of the in-memory object of the newly referenced // catalog was passed, we add this to our own children