« Previous | Next » 

Revision c8d8b4c8

Parent d65e5776
Child e9d741b6

Added by Iustin Pop about 15 years ago

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

Reviewed-by: ultrotter


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences