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

[PATCH] Correct the logic for checking txn in repos_commit_editor

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2005-10-24 02:22:20 CEST

==== Patch <commit-editor> level 1
Source: [No source]
Target: 65390229-12b7-0310-b90b-f21a5aa7ec8e:/trunk/subversion/libsvn_repos:16697
        (http://svn.collab.net/repos/svn)
Log:
Correct the logic for checking txn in repos_commit_editor's
close_edit, when txn is supplied by the caller.

* subversion/libsvn_repos/commit.c
  (close_edit): Don't bother checking txn_owner.

=== commit.c
==================================================================
--- commit.c (revision 16697)
+++ commit.c (patch commit-editor level 1)
@@ -668,7 +668,7 @@
   /* If no transaction has been created (ie. if open_root wasn't
      called before close_edit), abort the operation here with an
      error. */
- if ((! eb->txn) || (! eb->txn_owner))
+ if (! eb->txn)
     return svn_error_create(SVN_ERR_REPOS_BAD_ARGS, NULL,
                             "No valid transaction supplied to close_edit");
 

==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.09_01 (freebsd)

eJx1kstu1DAUhmfLiB0vYISrQkU6vsS5DFI0UoENEkKisI1s52QmahqPHM+0I3kzS16lD8L79A1w
ko4KCzaWjs75P//n8tlef1hRXxTEY0r8959flstv0unNWYhw4qFqnLFY+Bb20GLuW7PGse/kLYSs
k3YNrihoEGeT+NMoOEHigaGkM12P8xFWOguAqWcr7lfMhzcENCTNFrrSGuPCZzQRhIZsOXjSremh
HLRDvRjq2am+blrAmdfm9rZxl3pEneR8kIsnedVY0MHYYSiZOGNWbrftoXRw7yponRzZnPk4kYwI
xhglLK1JnGaK1XXNZUzrRMUa8zi0+3U2Oz5eHB9fvXwxOz68mf2a/V4fH65eI1BR4e67Vfx3B6PX
E59pTiqZZVlVCUEVFYKkUsaZhkywOh4boTn3V8YOxpHbAAqjbzSqjUV6A/qm6dYofIKaDlnYmr6c
plBOKzvv58+De4/uNtBN1T3qd6HpBiqkDiNXy7YFezmfX4SU2oPtG9Mt2kb1+7CRAb04DXiO0Ntn
7Lsl+mi6c4eUCZx/bZXmrhugmPKn9USTsaJgHjM2Xcv1eEDL5Y+uGf6V7Vniw3ltpduEW7OwD8Fu
11SYE79wdtfdLP5jcVx7kqeYJz4RPCeM5RFlKo0IpyRSOVFRzagUUqagM/gDoGb8gg==
==== END SVK PATCH BLOCK ====

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 24 02:24:12 2005

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.