Skip to content

Commit 9ef651e

Browse files
author
zhongming Fan
committed
kingbase: query lock_query mysql mode
1 parent ba4508f commit 9ef651e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

weops/pipe-tools/bk_pkg/kingbase/kingbase.collector.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,18 @@ queries:
319319
l.locktype,
320320
count(l.locktype) filter(
321321
WHERE
322-
granted = 't'
322+
granted = true
323323
) AS granted_count,
324324
count(l.locktype) filter(
325325
WHERE
326-
granted != 't'
326+
granted = false
327327
) AS wait_count
328328
FROM
329329
sys_locks l
330330
LEFT JOIN sys_database dtb ON l.database = dtb.oid
331331
GROUP BY
332332
l.locktype,
333-
dtb.datname,
334-
l.granted
333+
dtb.datname
335334
336335
- query_name: system_query
337336
query: |

0 commit comments

Comments
 (0)