diff --git a/erigon-lib/rules.go b/erigon-lib/rules.go index 5a44aee0ce7..5d7c14fbbdb 100644 --- a/erigon-lib/rules.go +++ b/erigon-lib/rules.go @@ -52,6 +52,12 @@ func txDeferRollback(m dsl.Matcher) { `$tx, $err = $db.Begin($ctx); $chk; $rollback`, `$tx, $err := $db.BeginRo($ctx); $chk; $rollback`, `$tx, $err = $db.BeginRo($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginTemporalRw($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginTemporalRw($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginTemporalRo($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginTemporalRo($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginRwNosync($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginRwNosync($ctx); $chk; $rollback`, ). Where(!m["rollback"].Text.Matches(`defer .*\.Rollback()`)). //At(m["rollback"]). diff --git a/rules.go b/rules.go index a8ea2b68503..9a7e62eed6d 100644 --- a/rules.go +++ b/rules.go @@ -51,6 +51,12 @@ func txDeferRollback(m dsl.Matcher) { `$tx, $err = $db.Begin($ctx); $chk; $rollback`, `$tx, $err := $db.BeginRo($ctx); $chk; $rollback`, `$tx, $err = $db.BeginRo($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginTemporalRw($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginTemporalRw($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginTemporalRo($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginTemporalRo($ctx); $chk; $rollback`, + `$tx, $err := $db.BeginRwNosync($ctx); $chk; $rollback`, + `$tx, $err = $db.BeginRwNosync($ctx); $chk; $rollback`, ). Where(!m["rollback"].Text.Matches(`defer .*\.Rollback()`)). //At(m["rollback"]).