問題がいつ始まるかわかりません。mongodb に新しい関数を作成し、次のように実行すると、
db.loadServerScripts();
testFun('xxx');
2 つのエラーが発生します。
SyntaxError: missing } after property list src/mongo/shell/db.js:1038
ReferenceError: testFun is not defined (shell):1
ただし、古い関数は正常に動作します。また、古い関数を 1 つ削除し、何も変更せずに再作成すると、上記と同じエラーが発生します。
私が使用したmongodbのバージョンは2.6.10
.