You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2012/03/14 17:37:36 UTC
svn commit: r1300626 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: philip
Date: Wed Mar 14 16:37:36 2012
New Revision: 1300626
URL: http://svn.apache.org/viewvc?rev=1300626&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
(read_children_info): Reset SQLite statement before returning an error.
Modified:
subversion/trunk/subversion/libsvn_wc/wc_db.c
Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1300626&r1=1300625&r2=1300626&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Wed Mar 14 16:37:36 2012
@@ -7356,13 +7356,16 @@ read_children_info(void *baton,
/* Assume working copy is all one repos_id so that a
single cached value is sufficient. */
if (repos_id != last_repos_id)
- return svn_error_createf(
+ {
+ err= svn_error_createf(
SVN_ERR_WC_DB_ERROR, NULL,
_("The node '%s' comes from unexpected repository "
"'%s', expected '%s'; if this node is a file "
"external using the correct URL in the external "
"definition can fix the problem, see issue #4087"),
child_relpath, repos_root_url, last_repos_root_url);
+ return svn_error_compose_create(err, svn_sqlite__reset(stmt));
+ }
child->repos_root_url = repos_root_url;
child->repos_uuid = repos_uuid;
}