mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
is_current
This commit is contained in:
parent
df148ca9ea
commit
d83aa7f865
@ -26,12 +26,9 @@ FROM "resource"
|
|||||||
*/}}
|
*/}}
|
||||||
{{ if gt .ResourceVersion 0 }}
|
{{ if gt .ResourceVersion 0 }}
|
||||||
AND {{ .Ident "rv" }} <= {{ .Arg .ResourceVersion }}
|
AND {{ .Ident "rv" }} <= {{ .Arg .ResourceVersion }}
|
||||||
|
|
||||||
ORDER BY {{ .Ident "rv" }} DESC
|
ORDER BY {{ .Ident "rv" }} DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
{{ end }}
|
{{ else }}
|
||||||
|
AND {{ .Ident "is_current" }} = true
|
||||||
{{ if .SelectForUpdate }}
|
|
||||||
{{ .SelectFor "UPDATE NOWAIT" }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
;
|
;
|
Loading…
Reference in New Issue
Block a user