Show
1.Go to commit 855320ba664efb2f80123ef66cc78617bb34dfc1 of v3.6
2.Run standalone server and set profile level of testDb to be 2
Unable to find source-code formatter for language: javascript. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml db.setProfilingLevel(2)
3.Run command:
Unable to find source-code formatter for language: javascript. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml assert .commandWorked(db.runCommand({
applyOps: [
{
op: 'c' ,
ns: 'test.$cmd' ,
o: {
renameCollection: 'test.testColl' ,
to: 'test.renamedColl' ,
stayTemp: false ,
dropTarget: false
}
},
{
op: 'c' ,
ns: 'test.$cmd' ,
o: {
renameCollection: 'jstests/concurrency/fsm_workloads' ,
to: 'test.123' ,
stayTemp: false ,
dropTarget: false
}
}
]
}));
4. Now you can see a db called "jstests/concurrency/fsm_workloads" and a collection "jstests/concurrency/fsm_workloads.system.profile"!
Unable to find source-code formatter for language: javascript. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml > show dbs
admin 0.000GB
jstests/concurrency/fsm_workloads 0.000GB
local 0.000GB
test 0.000GB
This bug is only exposed in the given commit because a later commit changes the codepath which this command would take. This is still a bug, however, because other commands could end up taking the original codepath"