Explorar o código

lib/db: Don't call backend.Commit twice (ref #6337) (#6342)

Simon Frei %!s(int64=5) %!d(string=hai) anos
pai
achega
05e23f1991
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      lib/db/transactions.go

+ 1 - 4
lib/db/transactions.go

@@ -755,10 +755,7 @@ func (t *readWriteTransaction) withAllFolderTruncated(folder []byte, fn func(dev
 			return nil
 		}
 	}
-	if err := dbi.Error(); err != nil {
-		return err
-	}
-	return t.Commit()
+	return dbi.Error()
 }
 
 type marshaller interface {