[IC] Move marking a transaction as successful up
#KT-49785 In Progress
This commit is contained in:
committed by
Space Team
parent
db5df5c5ec
commit
0260d1d63f
+3
-1
@@ -245,6 +245,9 @@ abstract class IncrementalCompilerRunner<
|
|||||||
RuntimeException("Failed to close caches, previous ICResult `$icResult` was discarded", e)
|
RuntimeException("Failed to close caches, previous ICResult `$icResult` was discarded", e)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (icResult is ICResult.Completed && icResult.exitCode == ExitCode.OK) {
|
||||||
|
transaction.markAsSuccessful()
|
||||||
|
}
|
||||||
return icResult
|
return icResult
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -555,7 +558,6 @@ abstract class IncrementalCompilerRunner<
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (exitCode == ExitCode.OK) {
|
if (exitCode == ExitCode.OK) {
|
||||||
transaction.markAsSuccessful()
|
|
||||||
reporter.measure(BuildTime.STORE_BUILD_INFO) {
|
reporter.measure(BuildTime.STORE_BUILD_INFO) {
|
||||||
BuildInfo.write(currentBuildInfo, lastBuildInfoFile)
|
BuildInfo.write(currentBuildInfo, lastBuildInfoFile)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user