From 13318a9710773267f7d7b2e9bc5cc39e92248cd4 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Thu, 29 Nov 2012 22:32:31 +0000 Subject: [PATCH] Update modules in ptc. --- bin/pt-table-checksum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 421ef740..44bd02da 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -5611,6 +5611,7 @@ sub new { : join(', ', map { $q->quote($_) } @cols)) . " FROM $tbl->{name}" . ($where ? " WHERE $where" : '') + . ($args{lock_in_share_mode} ? " LOCK IN SHARE MODE" : "") . " /*$comments{bite}*/"; PTDEBUG && _d('One nibble statement:', $nibble_sql); @@ -5620,6 +5621,7 @@ sub new { : join(', ', map { $q->quote($_) } @cols)) . " FROM $tbl->{name}" . ($where ? " WHERE $where" : '') + . ($args{lock_in_share_mode} ? " LOCK IN SHARE MODE" : "") . " /*explain $comments{bite}*/"; PTDEBUG && _d('Explain one nibble statement:', $explain_nibble_sql); @@ -5703,6 +5705,7 @@ sub new { . " AND " . $asc->{boundaries}->{'<='} # upper boundary . ($where ? " AND ($where)" : '') . ($args{order_by} ? " ORDER BY $order_by" : "") + . ($args{lock_in_share_mode} ? " LOCK IN SHARE MODE" : "") . " /*$comments{nibble}*/"; PTDEBUG && _d('Nibble statement:', $nibble_sql); @@ -5715,6 +5718,7 @@ sub new { . " AND " . $asc->{boundaries}->{'<='} # upper boundary . ($where ? " AND ($where)" : '') . ($args{order_by} ? " ORDER BY $order_by" : "") + . ($args{lock_in_share_mode} ? " LOCK IN SHARE MODE" : "") . " /*explain $comments{nibble}*/"; PTDEBUG && _d('Explain nibble statement:', $explain_nibble_sql);