You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. --source include/have_innodb.inc
  2. # XtraDB has lots of "still reachable" memory leak warnings at shutdown when
  3. # --innodb-use-sys-malloc
  4. --source include/not_valgrind.inc
  5. #display current value of innodb_use_sys_malloc
  6. SELECT @@GLOBAL.innodb_use_sys_malloc;
  7. --echo 1 Expected
  8. #try changing it. Should fail.
  9. --error ER_INCORRECT_GLOBAL_LOCAL_VAR
  10. SET @@GLOBAL.innodb_use_sys_malloc=0;
  11. --echo Expected error 'Read only variable'
  12. SELECT @@GLOBAL.innodb_use_sys_malloc;
  13. --echo 1 Expected
  14. #do some stuff to see if it works.
  15. --disable_warnings
  16. drop table if exists t1;
  17. --enable_warnings
  18. create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
  19. insert into t1 values (1),(2),(3),(4),(5),(6),(7);
  20. select * from t1;
  21. drop table t1;
  22. --source include/have_innodb.inc
  23. #display current value of innodb_use_sys_malloc
  24. SELECT @@GLOBAL.innodb_use_sys_malloc;
  25. --echo 1 Expected
  26. #try changing it. Should fail.
  27. --error ER_INCORRECT_GLOBAL_LOCAL_VAR
  28. SET @@GLOBAL.innodb_use_sys_malloc=0;
  29. --echo Expected error 'Read only variable'
  30. SELECT @@GLOBAL.innodb_use_sys_malloc;
  31. --echo 1 Expected
  32. #do some stuff to see if it works.
  33. --disable_warnings
  34. drop table if exists t1;
  35. --enable_warnings
  36. create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
  37. insert into t1 values (1),(2),(3),(4),(5),(6),(7);
  38. select * from t1;
  39. drop table t1;