ctdb-locking: Instead of comparing key, compare key hash
authorAmitay Isaacs <amitay@gmail.com>
Mon, 10 Mar 2014 08:10:29 +0000 (19:10 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 28 Mar 2014 04:28:58 +0000 (05:28 +0100)
commitf99a759ce7cb5492442c018f976619f0ba439a43
tree3990213bd1fd6f2e1a87c198e9abbf6d78d67b95
parentd1c8f8d63506c099e2ee9be7cb91f0fac4a8d848
ctdb-locking: Instead of comparing key, compare key hash

This replaces memory comparison of the key with integer comparison.
In addition, this also avoids scheduling locks with the same hash.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Mar 28 05:28:58 CET 2014 on sn-devel-104
ctdb/server/ctdb_lock.c