From 10cb14fcb8525e5b5f324085fb67f19a9a54d7d8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 22 Feb 2020 17:44:20 +0100 Subject: [PATCH] lib/db: Allow put partial FileInfo without blocks (ref #6353) --- lib/db/transactions.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/db/transactions.go b/lib/db/transactions.go index 003c17ce8..e18f872a7 100644 --- a/lib/db/transactions.go +++ b/lib/db/transactions.go @@ -468,9 +468,6 @@ func (t readWriteTransaction) putFile(key []byte, fi protocol.FileInfo) error { } else if err != nil { 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