Checkout
rhuijben
committed
on 09 Jun 11
Allow the operation to fetch a workqueue item to mark a previous item
completed. This removes one database transaction for every processed
w… Show more
Allow the operation to fetch a workqueue item to mark a previous item

completed. This removes one database transaction for every processed

workqueue item.

* subversion/libsvn_wc/lock.c

 (pool_cleanup_locked): Update caller.

* subversion/libsvn_wc/wc_db.c

 (wq_fetch_next_baton_t): New struct.

 (wq_fetch_next): New function.

 (svn_wc__db_wq_fetch): Rename to ...

 (svn_wc__db_wq_fetch_next): ... this and call wq_fetch_next,

   inside a transaction to fetch and complete items.

 (svn_wc__db_wq_completed): Remove function.

* subversion/libsvn_wc/wc_db.h

 (svn_wc__db_wq_fetch): Rename to ...

 (svn_wc__db_wq_fetch_next): ... this and update documentation.

* subversion/libsvn_wc/workqueue.c

 (svn_wc__wq_run): Update caller.

* subversion/tests/libsvn_wc/db-test.c

 (test_work_queue): Update caller.

Show less