QuestionQ106

Performance

Examine the following commands and output:

Question Image

Which connection ID holds the metadata lock?

  • A 20
  • B 24
  • C 21
  • D 25
  • E 22
  • F 6
Explanation

A granted metadata lock is held by thread 60, which maps to connection ID 20. Connection 22 owns the pending lock request for OPTIMIZE TABLE, so it is waiting for the lock rather than holding it.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!