dbwrap_ctdb: Instrument chainunlock timing
authorVolker Lendecke <vl@samba.org>
Mon, 6 May 2013 08:56:12 +0000 (10:56 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 16 Jan 2014 08:18:45 +0000 (09:18 +0100)
commitb64abab807655114285be578564fd5d3a5f5e2e1
tree5e26005e70a2bef2224b15bd7624cc978c13e321
parent34bfd0b6d210e9f617ace69dbf80a55f0988d81d
dbwrap_ctdb: Instrument chainunlock timing

We need an indication whether we run into the fcntl thundering
herd. fcntl unlock should be blindingly fast in the normal case. If it
takes longer than 5 milliseconds, warn. The timeout can be adapted by
setting

ctdb:unlock_warn_threshold = <number-of-milliseconds>

Reviewed-by: Christof Schmitt <cs@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
source3/lib/dbwrap/dbwrap_ctdb.c