Skip to content

Commit

Permalink
Merge pull request #4941 from dt/reenablefastdelete
Browse files Browse the repository at this point in the history
sql: re-enable fast-path delete
  • Loading branch information
dt committed Mar 7, 2016
2 parents d3fc04b + a944591 commit c6ebc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func canDeleteWithoutScan(n *parser.Delete, rows planNode, indexCount int) bool
}
return false
}
if n.Where != nil {
if scan := sel.table.node.(*scanNode); scan.filter != nil {
if log.V(2) {
log.Infof("delete forced to scan: values required for filter (%s)", sel.filter)
}
Expand Down

0 comments on commit c6ebc42

Please sign in to comment.