FreeBSD/contrib/subversion/subversion/libsvn_fs_base/bdb/copies-table.c
/* Store COPY as a copy named COPY_ID in FS as part of TRAIL.  */
/* ### only has one caller; might not need to be abstracted */
Store COPY as a copy named COPY_ID in FS as part of TRAIL.
only has one caller; might not need to be abstracted
Store COPY as a copy named COPY_ID in FS as part of TRAIL . only has one caller ; might not need to be abstracted
static svn_error_t *
put_copy(svn_fs_t *fs,
         const copy_t *copy,
         const char *copy_id,
         trail_t *trail,
         apr_pool_t *pool)
{
  base_fs_data_t *bfd = fs->fsap_data;
  svn_skel_t *copy_skel;
  DBT key, value;
  SVN_ERR(svn_fs_base__unparse_copy_skel(&copy_skel, copy, pool));
  svn_fs_base__str_to_dbt(&key, copy_id);
  svn_fs_base__skel_to_dbt(&value, copy_skel, pool);
  svn_fs_base__trail_debug(trail, "copies", "put");
  return BDB_WRAP(fs, N_("storing copy record"),
                  bfd->copies->put(bfd->copies, trail->db_txn,
                                   &key, &value, 0));
}
static svn_error_t * put_copy ( svn_fs_t * fs , const copy_t * copy , const char * copy_id , trail_t * trail , apr_pool_t * pool ) { base_fs_data_t * bfd = fs -> fsap_data ; svn_skel_t * copy_skel ; DBT key , value ; SVN_ERR ( svn_fs_base__unparse_copy_skel ( & copy_skel , copy , pool ) ) ; svn_fs_base__str_to_dbt ( & key , copy_id ) ; svn_fs_base__skel_to_dbt ( & value , copy_skel , pool ) ; svn_fs_base__trail_debug ( trail , " " , " " ) ; return BDB_WRAP ( fs , N_ ( " " ) , bfd -> copies -> put ( bfd -> copies , trail -> db_txn , & key , & value , 0 ) ) ; }
Store COPY as a copy named COPY_ID in FS as part of TRAIL.
Store COPY as a copy named COPY_ID in FS as part of TRAIL .
/* Convert native type to skel. */ /* Only in the context of this function do we know that the DB call
     will not attempt to modify COPY_ID, so the cast belongs here.  */