mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fixed recovery bug where bitmap pages would not be correctly updated after processing UNDO rows.
Fixed test failures in buildbot Don't write errors when failing to send ok packet mysql-test/suite/pbxt/r/range.result: Don't write number of rows as it varies. mysql-test/suite/pbxt/t/range.test: Don't write number of rows as it varies. sql/mysqld.cc: Don't write errors when failing to send ok packet storage/maria/ma_bitmap.c: Added DBUG_ASSERT to detect wrong bitmap pages storage/maria/ma_blockrec.c: Don't reset BLOCKUSED_USE_ORG_BITMAP flag. This fixed a bug where bitmap could be wrong after UNDO of row with blobs
This commit is contained in:
@ -422,20 +422,20 @@ test.t1 analyze status OK
|
||||
test.t2 analyze status OK
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL 1 Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 1
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid > 0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL 1 Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 1
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL 2 Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 1
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid != 0;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL 2 Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid 1
|
||||
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
|
||||
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
|
||||
select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
|
||||
id name uid id name uid
|
||||
1001 A 1 1001 A 1
|
||||
|
@ -383,9 +383,14 @@ analyze table t1,t2;
|
||||
# This part doesn't make sense for pbxt as the result may vary becasue
|
||||
# records_in_range() gives same results for t1 and t2.
|
||||
# Added straight_join to get predictable results
|
||||
|
||||
--replace_column 9 #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
|
||||
--replace_column 9 #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid > 0;
|
||||
--replace_column 9 #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
|
||||
--replace_column 9 #
|
||||
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid != 0;
|
||||
|
||||
select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
|
||||
|
Reference in New Issue
Block a user