Revision c8d8b4c8
ID | c8d8b4c80468cc6327bc3549b8694c9d68f186fa |
Optimize the OpQueryNodes for names only
Currently, OpQueryNodes is locking all nodes (in shared mode), which
will also block the special case of querying only for the node names
(this is needed for gnt-cluster command, for example). There is no
logical requirement to not give the administrator enough power if she/he
knows what to do, so it would be logical that querying the node names
works without a lock.
The patch changes the LUQuerytNodes.ExpandNodes to only request locking
when the selected fields contain dynamic attributes, and a small change
in the Exec() method to use the new, atomic query method from
ConfigWriter.
Reviewed-by: ultrotter
Files
- added
- modified
- copied
- renamed
- deleted