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

Re: svn commit: r1096777 - /subversion/trunk/subversion/libsvn_wc/props.c

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 26 Apr 2011 11:35:57 -0400

On Tue, Apr 26, 2011 at 11:15, <hwright_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_wc/props.c Tue Apr 26 15:15:24 2011
> @@ -2018,6 +2018,7 @@ do_propset(svn_wc__db_t *db,
>   svn_wc_notify_action_t notify_action;
>   svn_wc__db_kind_t kind;
>   svn_wc__db_status_t status;
> +  svn_skel_t *work_item = NULL;

Why is this initialized? It is set unconditionally below.

>...
> @@ -2179,9 +2159,12 @@ do_propset(svn_wc__db_t *db,
>   apr_hash_set(prophash, name, APR_HASH_KEY_STRING, value);
>
>   /* Drop it right into the db..  */
> -  SVN_ERR(svn_wc__db_op_set_props(db, local_abspath, prophash, NULL, NULL,
> +  SVN_ERR(svn_wc__db_op_set_props(db, local_abspath, prophash, NULL, work_item,
>                                   scratch_pool));
>
> +  /* Run our workqueue item for sync'ing flags with props. */
> +  SVN_ERR(svn_wc__wq_run(db, local_abspath, NULL, NULL, scratch_pool));

This raises an interesting question: is it okay to run the workqueue
at any point in time? I believe the answer is "yes", but are there
situations where a caller may expect that the queue-run is under their
control, and the caller wants to wait a bit longer?

Cheers,
-g
Received on 2011-04-26 17:36:28 CEST

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.