fix bug: filer DELETE

This commit is contained in:
DaLin
2016-06-11 01:16:19 +08:00
parent e416679cea
commit fa2a7b5f2f
4 changed files with 19 additions and 7 deletions

View File

@@ -33,12 +33,12 @@ func (s *RedisStore) Put(fullFileName string, fid string) (err error) {
}
// Currently the fid is not returned
func (s *RedisStore) Delete(fullFileName string) (fid string, err error) {
func (s *RedisStore) Delete(fullFileName string) (err error) {
_, err = s.Client.Del(fullFileName).Result()
if err == redis.Nil {
err = nil
}
return "", err
return err
}
func (s *RedisStore) Close() {