Skip to content
Snippets Groups Projects
Commit ba6eda59 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

_ExportQuery: Use node allocation lock


Block instance allocations when all node locks will be acquired.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 38446261
No related branches found
No related tags found
No related merge requests found
......@@ -13951,6 +13951,9 @@ class _ExportQuery(_QueryBase):
locking.LEVEL_NODE: self.wanted,
}
 
if not self.names:
lu.needed_locks[locking.LEVEL_NODE_ALLOC] = locking.ALL_SET
def DeclareLocks(self, lu, level):
pass
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment