Browse Source

lib/db: Fix non-truncated fileinfo loading (#6621)

Audrius Butkevicius 5 years ago
parent
commit
da99203dcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/db/transactions.go

+ 1 - 1
lib/db/transactions.go

@@ -167,7 +167,7 @@ func (t *readOnlyTransaction) withHave(folder, device, prefix []byte, truncate b
 		if err != nil {
 			return err
 		}
-		if f, ok, err := t.getFileTrunc(key, true); err != nil {
+		if f, ok, err := t.getFileTrunc(key, truncate); err != nil {
 			return err
 		} else if ok && !fn(f) {
 			return nil