removing MULTI command on redis driver

fixes #514
This commit is contained in:
Radu Ioan Fericean
2016-08-22 12:44:58 +03:00
parent 87e12f6ea4
commit 869406187c

View File

@@ -204,10 +204,6 @@ func (rs *RedisStorage) RebuildReverseForPrefix(prefix string) error {
return err
}
defer rs.db.Put(conn)
err = conn.Cmd("MULTI").Err //FIXME: command bellow are using conn
if err != nil {
return err
}
keys, err := rs.GetKeysForPrefix(prefix)
if err != nil {
return err
@@ -250,10 +246,6 @@ func (rs *RedisStorage) RebuildReverseForPrefix(prefix string) error {
default:
return utils.ErrInvalidKey
}
err = conn.Cmd("EXEC").Err
if err != nil {
return err
}
return nil
}