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:50 +0000 (12:21 +1100)
commit5e614e8cfd1e9a4b13035a0e400b7a60a745b510
tree6046bc7b2776afc6c9ca633861680660dc65d1a0
parent1b3c5278aa1bf712606e2ec138e6be7b2e8a6ad1
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