From 00de9c0e27ee682be2560d3e655788cdac10bbd2 Mon Sep 17 00:00:00 2001 From: kirangodishala Date: Wed, 20 Nov 2024 23:25:22 +0530 Subject: [PATCH] refactor(sql): remove forUpdate argument from SqlExecutionRepository.selectExecution since it's not used. --- .../orca/sql/pipeline/persistence/SqlExecutionRepository.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/pipeline/persistence/SqlExecutionRepository.kt b/orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/pipeline/persistence/SqlExecutionRepository.kt index 1c57aece5b..720975938b 100644 --- a/orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/pipeline/persistence/SqlExecutionRepository.kt +++ b/orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/pipeline/persistence/SqlExecutionRepository.kt @@ -1275,14 +1275,10 @@ class SqlExecutionRepository( private fun selectExecution( ctx: DSLContext, type: ExecutionType, - id: String, - forUpdate: Boolean = false + id: String ): PipelineExecution? { withPool(poolName) { val select = ctx.selectExecution(type, compressionProperties).where(id.toWhereCondition()) - if (forUpdate) { - select.forUpdate() - } return select.fetchExecution() } }