diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-11-15 15:58:59 +1100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-27 18:46:16 +0100 |
commit | 094f34e9bff0ea0499d18a829125b75344bbf65f (patch) | |
tree | 7d04dfcfe20d3c522b58bb399c9ddba7201a0e89 /ctdb/include/ctdb_private.h | |
parent | 1dcf01f4a684e219e89163356fa8702f103b8ae6 (diff) | |
download | samba-094f34e9bff0ea0499d18a829125b75344bbf65f.tar.gz samba-094f34e9bff0ea0499d18a829125b75344bbf65f.tar.xz samba-094f34e9bff0ea0499d18a829125b75344bbf65f.zip |
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>
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r-- | ctdb/include/ctdb_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 279fa2f44ad..8135112f62c 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -556,7 +556,6 @@ struct ctdb_context { struct trbt_tree *child_processes; /* Used for locking record/db/alldb */ - int lock_num_current; int lock_num_pending; struct lock_context *lock_current; struct lock_context *lock_pending; @@ -596,6 +595,8 @@ struct ctdb_db_context { struct trbt_tree *deferred_fetch; struct ctdb_db_statistics statistics; + + int lock_num_current; }; |