I was inspecting my mongodb performance by using db.currentOp(true)
, the mongo shell returned the following error message, but db.currentOp() works fine
yqdmj:PRIMARY> db.currentOp(true) 2015-03-31T16:01:06.383+0800 ReferenceError: PROC_UpdateUserCoupon is not defined 2015-03-31T16:01:06.384+0800 Error: 16722 ReferenceError: PROC_UpdateUserCoupon is not defined at src/mongo/shell/types.js:616
Actually, PROC_UpdateUserCoupon
is a server-side js that I defined, and I can find it in db.system.js
, I don't know what is exactly going on with db.currentOp(true)
, I tried using db.currentOp()
without passing parameter, it works fine, how can I fix it?