Don't retry in case of generic I/O errors
Don't retry in case of generic I/O errors

Leadership-related errors are propagated by go-dqlite using driver.ErrBadConn,
so this legacy check can be removed, since it would actually make us retry in
case of non-retriable errors such as out-of-disk.

Signed-off-by: Free Ekanayaka <04111f73b2d444cf053b50d877d79556bf34f55a@canonical.com>

Skarlso/lxd,atxwebs/lxd,Skarlso/lxd,mjeanson/lxd,stgraber/lxd,mjeanson/lxd,lxc/lxd,atxwebs/lxd,hallyn/lxd,lxc/lxd,hallyn/lxd,mjeanson/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,Skarlso/lxd,stgraber/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd,stgraber/lxd,stgraber/lxd,lxc/lxd,hallyn/lxd,lxc/lxd,lxc/lxd,hallyn/lxd,stgraber/lxd,hallyn/lxd,Skarlso/lxd,atxwebs/lxd