Skip to content

Commit 3a9b010

Browse files
authored
PLM-147: Check if _id_ index is dropped during clone (#121)
1 parent 797dec7 commit 3a9b010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

topo/errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ func IsNamespaceNotFound(err error) bool {
2727
func IsCollectionDropped(err error) bool {
2828
var cmdErr mongo.CommandError
2929
if errors.As(err, &cmdErr) && cmdErr.Name == "QueryPlanKilled" {
30-
return strings.Contains(cmdErr.Message, "collection dropped")
30+
return strings.Contains(cmdErr.Message, "collection dropped") ||
31+
strings.Contains(cmdErr.Message, "index '_id_' dropped")
3132
}
3233

3334
return false

0 commit comments

Comments
 (0)