/[Apache-SVN]
ViewVC logotype

Revision 1103266


Jump to revision: Previous Next
Author: fdmanana
Date: Sun May 15 02:35:25 2011 UTC (12 years, 11 months ago)
Changed paths: 1
Log Message:
Bug fix in couch_work_queue: state's size not decremented

When dequeing some items from the queue (that is, not taking all the queued items)
the size field of the gen_server's state was not being decremented as it should.
However when all the queue items are delivered to a consumer, the size is set to 0.

This particular fix has a good impact in the new replicator because it uses work queues
and the consumers only dequeue 1 item at a time - producers will no longer be blocked
until the queue gets empty.
For a push replication that used to take about 15 minutes, it now takes about 13 minutes.



Changed paths

Path Details
Directorycouchdb/trunk/src/couchdb/couch_work_queue.erl modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26