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:20:00 +0000 (12:20 +1100)
commit8f26219bf65c1ed564f98696833c1aed6d8de988
tree2e9d29439a02de735cfe045f637f91677fae916f
parent04944a2d296f8ae2359f6bda493d7eff1da3944c
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