生产出现failed to read auto_random value from storage engine

麻烦问一下这块相关源码在哪里?怎么算出我当前表还有多少id可用?