[Issue 8276] [PATCH 2/2] Add an application context pointer into user-defined key compare and dupsort functions