List:Commits« Previous MessageNext Message »
From:Hakan Kuecuekyilmaz Date:April 14 2007 5:35pm
Subject:bk commit into 5.1-falcon tree (hakank:1.2596) BUG#27719
View as plain text  
Below is the list of changes that have just been committed into a local
5.1-falcon repository of hakan. When hakan does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-04-14 17:35:21+02:00, hakank@stripped +2 -0
  Added test case for nearly fixed Bug#27719.

  mysql-test/r/falcon_bug_27719.result@stripped, 2007-04-14 17:35:18+02:00,
hakank@stripped +24 -0
    New BitKeeper file ``mysql-test/r/falcon_bug_27719.result''

  mysql-test/r/falcon_bug_27719.result@stripped, 2007-04-14 17:35:18+02:00,
hakank@stripped +0 -0

  mysql-test/t/falcon_bug_27719.test@stripped, 2007-04-14 17:35:18+02:00,
hakank@stripped +55 -0
    New BitKeeper file ``mysql-test/t/falcon_bug_27719.test''

  mysql-test/t/falcon_bug_27719.test@stripped, 2007-04-14 17:35:18+02:00,
hakank@stripped +0 -0

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	hakank
# Host:	lu0011.wdf.sap.corp
# Root:	/home/hakan/work/mysql/mysql-5.1-falcon
--- New file ---
+++ mysql-test/r/falcon_bug_27719.result	07/04/14 17:35:18
*** Bug #27719 ***
SET @@storage_engine = 'Falcon';
DROP TABLE IF EXISTS t1;
DROP PROCEDURE IF EXISTS p1;
CREATE TABLE t1 (a blob);
INSERT INTO t1 VALUES ('1');
COMMIT;
SET @@autocommit = 0;
CREATE PROCEDURE p1 ()
BEGIN
DECLARE v int DEFAULT 0;
WHILE v < 35000 DO
/* IF v MOD 1000 = 0 THEN SELECT v; END IF; */
UPDATE t1 SET a = '1';
COMMIT;
SET v = v + 1;
END WHILE;
END //
CALL p1;
SELECT count(*) FROM t1;
count(*)
1
DROP TABLE t1;
DROP PROCEDURE p1;

--- New file ---
+++ mysql-test/t/falcon_bug_27719.test	07/04/14 17:35:18
#
# Bug #27719: Falcon: hang after many updates of blob column
# @comment Original loop count is 100000. Lowered to 35000
#          because of run time on Pushbuild. Should be tested
#          with loop count of 1 mio from time to time.
# @tag Memory leak, BLOB
#
--echo *** Bug #27719 ***

# ----------------------------------------------------- #
# --- Initialisation                                --- #
# ----------------------------------------------------- #
let $engine = 'Falcon';
eval SET @@storage_engine = $engine;

--disable_warnings
DROP TABLE IF EXISTS t1;
DROP PROCEDURE IF EXISTS p1;
--enable_warnings

CREATE TABLE t1 (a blob);
INSERT INTO t1 VALUES ('1');
COMMIT;
SET @@autocommit = 0;

DELIMITER //;

CREATE PROCEDURE p1 ()
BEGIN
  DECLARE v int DEFAULT 0;
  WHILE v < 35000 DO
    /* IF v MOD 1000 = 0 THEN SELECT v; END IF; */
    UPDATE t1 SET a = '1';
    COMMIT;
    SET v = v + 1;
  END WHILE;
END //

DELIMITER ;//

# ----------------------------------------------------- #
# --- Test                                          --- #
# ----------------------------------------------------- #
CALL p1;

# ----------------------------------------------------- #
# --- Check                                         --- #
# ----------------------------------------------------- #
SELECT count(*) FROM t1;

# ----------------------------------------------------- #
# --- Final cleanup                                 --- #
# ----------------------------------------------------- #
DROP TABLE t1;
DROP PROCEDURE p1;

Thread
bk commit into 5.1-falcon tree (hakank:1.2596) BUG#27719Hakan Kuecuekyilmaz14 Apr