ctdb_lockwait: create overflow queue.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 21 Jan 2011 10:47:02 +0000 (21:17 +1030)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 24 Jan 2011 01:21:09 +0000 (12:21 +1100)
commit681dce93714ec7c59535320a605deabbc1388eed
treec303b01779197828889fb5913627f60d48da3a68
parent0b98a8afeadc3504495e855d299ecd10a965f77b
ctdb_lockwait: create overflow queue.

Once we have more than 200 children waiting on a particular db, don't create
any more.  Just put them on an overflow queue, and when a child gets a lock
search that queue to see if others were after the same lock (they probably
were).
include/ctdb_private.h
server/ctdb_lockwait.c