ctdb-locking: Implement active lock requests limit per database
authorAmitay Isaacs <amitay@gmail.com>
Fri, 15 Nov 2013 04:58:59 +0000 (15:58 +1100)
committerMichael Adam <obnox@samba.org>
Wed, 27 Nov 2013 17:46:16 +0000 (18:46 +0100)
commit094f34e9bff0ea0499d18a829125b75344bbf65f
tree7d04dfcfe20d3c522b58bb399c9ddba7201a0e89
parent1dcf01f4a684e219e89163356fa8702f103b8ae6
ctdb-locking: Implement active lock requests limit per database

This limit was currently a global limit and not per database.  This
prevents any database freeze lock requests from getting scheduled if
the global limit was reached.

Only individual record requests should be limited and database freeze
requests should always get scheduled.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_lock.c