• Davi Arnaut's avatar
    Bug#44164: TL_WRITE has no description in lock_descriptions[] · b27261a6
    Davi Arnaut authored
    The problem was that new lock types were being added without a
    corresponding description. Since the lock types (enum values)
    are used as indices to the description array, the descriptions
    could be shifted depending on the lock type. The solution is to
    ensure that every lock type has a correspondent description.
    
    include/thr_lock.h:
      Add warning.
    sql/sql_test.cc:
      Update lock descriptions.
    b27261a6
thr_lock.h 5.92 KB