You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yoshiki Hayashi <yo...@xemacs.org> on 2001/02/27 09:34:43 UTC

[PATCH] svn_fs__destroy_txn

* txn-table.c (svn_fs__destroy_txn): New function.  Thi will
  be used by svn_fs_abort_txn ().

Index: txn-table.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/txn-table.c,v
retrieving revision 1.15
diff -u -r1.15 txn-table.c
--- txn-table.c	2001/02/20 22:43:31	1.15
+++ txn-table.c	2001/02/27 09:30:48
@@ -175,6 +175,22 @@
 
 
 svn_error_t *
+svn_fs__destroy_txn (svn_fs_t *fs,
+                     const char *svn_txn,
+                     trail_t *trail)
+{
+  DBT key;
+
+  svn_fs__str_to_dbt (&key, (char *) svn_txn);
+
+  SVN_ERR (DB_WRAP (fs, "destroying transaction ID",
+                    fs->transactions->del (fs->transactions,
+                                           trail->db_txn, &key, 0)));
+  return SVN_NO_ERROR;
+}
+
+
+svn_error_t *
 svn_fs__get_txn (svn_fs_id_t **root_id_p,
                  svn_fs_id_t **base_root_id_p,
                  svn_fs_t *fs,
Index: txn-table.h
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/txn-table.h,v
retrieving revision 1.8
diff -u -r1.8 txn-table.h
--- txn-table.h	2001/02/12 00:26:14	1.8
+++ txn-table.h	2001/02/27 09:30:48
@@ -34,6 +34,11 @@
                                  const svn_fs_id_t *root_id,
                                  trail_t *trail);
 
+/* Remove Subversion transaction SVN_TXN from the `transactions' table
+   of FS, as part of TRAIL.  */
+svn_error_t *svn_fs__destroy_txn (svn_fs_t *fs,
+                                  const char *svn_txn,
+                                  trail_t *trail);
 
 /* Retrieve information about the Subversion transaction SVN_TXN from
    the `transactions' table of FS, as part of TRAIL.


-- 
Yoshiki Hayashi