mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
explain for distinct and findAndModify was introduced in Mongo 3.4
This commit is contained in:
@@ -108,6 +108,14 @@ func TestExplain(t *testing.T) {
|
|||||||
expectError["insert_"+v] = "Only update and delete write ops can be explained"
|
expectError["insert_"+v] = "Only update and delete write ops can be explained"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Explaining `distinct` and `findAndModify` was introduced in MongoDB 3.2
|
||||||
|
if ok, _ := Constraint(">= 3.0, < 3.2", bi.Version); ok {
|
||||||
|
for _, v := range versions {
|
||||||
|
expectError["distinct_"+v] = "Cannot explain cmd: distinct"
|
||||||
|
expectError["findandmodify_"+v] = "Cannot explain cmd: findAndModify"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ex := New(session)
|
ex := New(session)
|
||||||
|
Reference in New Issue
Block a user