Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Fix the copied & pasted messy code, fix #38067 Now, "limit=-1" means "no limit"