[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] svn_fs__destroy_txn

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-02-27 10:34:43 CET

* 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
Received on Sat Oct 21 14:36:23 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.