From 25e82b1681d717176c43dd15c0a33007fe0b0bab Mon Sep 17 00:00:00 2001 From: bbrehm Date: Mon, 16 Sep 2024 19:12:32 +0200 Subject: [PATCH] bump flatgraph, properly log transitive changes (#1786) --- build.sbt | 2 +- .../src/main/scala/io/shiftleft/passes/CpgPass.scala | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/build.sbt b/build.sbt index 4756cd411..986af0300 100644 --- a/build.sbt +++ b/build.sbt @@ -1,7 +1,7 @@ name := "codepropertygraph" // parsed by project/Versions.scala, updated by updateDependencies.sh -val flatgraphVersion = "0.0.88" +val flatgraphVersion = "0.0.89" inThisBuild( List( diff --git a/codepropertygraph/src/main/scala/io/shiftleft/passes/CpgPass.scala b/codepropertygraph/src/main/scala/io/shiftleft/passes/CpgPass.scala index 42228d6cd..58509d6f3 100644 --- a/codepropertygraph/src/main/scala/io/shiftleft/passes/CpgPass.scala +++ b/codepropertygraph/src/main/scala/io/shiftleft/passes/CpgPass.scala @@ -75,12 +75,7 @@ abstract class ForkJoinParallelCpgPass[T <: AnyRef](cpg: Cpg, @nowarn outName: S nanosBuilt = System.nanoTime() nDiff = diffGraph.size - // TODO how about `nDiffT` which seems to count the number of modifications.. - // nDiffT = overflowdb.BatchedUpdate - // .applyDiff(cpg.graph, diffGraph, null) - // .transitiveModifications() - - flatgraph.DiffGraphApplier.applyDiff(cpg.graph, diffGraph) + nDiffT = flatgraph.DiffGraphApplier.applyDiff(cpg.graph, diffGraph) } catch { case exc: Exception => baseLogger.error(s"Pass ${name} failed", exc)