| Steps To Reproduce: |
1.Go to commit 855320ba664efb2f80123ef66cc78617bb34dfc1 of v3.6
2.Run standalone server and set profile level of testDb to be 2
3.Run command:
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"!
> 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"
|