Просмотр исходного кода

lib/db: Allow put partial FileInfo without blocks (ref #6353)

Jakob Borg 5 лет назад
Родитель
Сommit
10cb14fcb8
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      lib/db/transactions.go

+ 0 - 3
lib/db/transactions.go

@@ -468,9 +468,6 @@ func (t readWriteTransaction) putFile(key []byte, fi protocol.FileInfo) error {
 		} else if err != nil {
 		} else if err != nil {
 			return err
 			return err
 		}
 		}
-	} else if fi.BlocksHash != nil {
-		l.Debugln("Blocks is nil, but BlocksHash is not for file", fi)
-		fi.BlocksHash = nil
 	}
 	}
 
 
 	fi.Blocks = nil
 	fi.Blocks = nil