Skip to content

Commit 5ad2d7f

Browse files
authored
Summary improvements (#14)
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 22d4b68 commit 5ad2d7f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name := "cpg2"
22
ThisBuild / organization := "io.appthreat"
3-
ThisBuild / version := "3.0.4"
3+
ThisBuild / version := "3.0.5"
44
ThisBuild / scalaVersion := "3.8.4"
55

66
// parsed by project/Versions.scala
7-
val overflowdbVersion = "3.0.4"
7+
val overflowdbVersion = "3.0.5"
88
val overflowdbCodegenVersion = "2.103"
99

1010
ThisBuild / Test / fork := true

codepropertygraph/src/main/scala/io/shiftleft/passes/ConcurrentWriterCpgPass.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ abstract class ConcurrentWriterCpgPass[T <: AnyRef](
158158
: Unit =
159159
if batch.size() > 0 then
160160
batch.forEach { diffGraph =>
161-
nDiffT += overflowdb.BatchedUpdate
161+
val applied = overflowdb.BatchedUpdate
162162
.applyDiff(cpg.graph, diffGraph, keyPool.orNull, null)
163163
.transitiveModifications()
164+
nDiffT += applied
164165
}
165166
batch.clear()
166167
end Writer

codepropertygraph/src/main/scala/io/shiftleft/passes/StreamingCpgPass.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ abstract class StreamingCpgPass[T <: AnyRef](
159159
if batch.size() > 0 then
160160
try
161161
batch.forEach { diffGraph =>
162-
nDiffT += overflowdb.BatchedUpdate
162+
val applied = overflowdb.BatchedUpdate
163163
.applyDiff(cpg.graph, diffGraph, keyPool.orNull, null)
164164
.transitiveModifications()
165+
nDiffT += applied
165166
}
166167
finally
167168
batch.clear()

0 commit comments

Comments
 (0)