I am looking into the source code of InnoDB and I have a question. Currently all the record level locks are stored in a hash table. Also, locks with the same rec_fold value are stored in the same linked list. Does changing the data structure for lock objects from list to heap affects the performance and correctness of MySQL? If so, which parts are going to be affected?
↧