Currently the out of order key prints as follows.
- The cursor page dump when the out of order key detected
- The out of order keys panic error message
The above approach is leading to the problem by the time we access the out of order keys.
Instead of the above order, change the order of the prints as follows.
- Print the out of order keys
- The cursor page dump when the out of order key detected
- The panic error message.