File: wait-for-chunk.sh

package info (click to toggle)
percona-toolkit 3.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 62,876 kB
  • sloc: perl: 239,984; sql: 22,831; sh: 19,126; makefile: 272; awk: 38; python: 30; sed: 1
file content (8 lines) | stat: -rwxr-xr-x 177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh

port=$1
db=$2
tbl=$3
chunk=$4

/tmp/$port/use -e "select 1 from percona.checksums where db='$db' and tbl='$tbl' and chunk=$chunk" 2>/dev/null | grep -q 1 2>/dev/null