| 1 |
create table t1(id int primary key, val blob) engine=ndb; |
| 2 |
"Backup not started, ndbinfo should show zero backup buffer usage" |
| 3 |
select count(*) from ndbinfo.logbuffers where log_type like "BACKUP%" and used > 0; |
| 4 |
count(*) |
| 5 |
0 |
| 6 |
"Backup started, ndbinfo should show backup buffer usage" |
| 7 |
select count(*) from ndbinfo.logbuffers where log_type like "BACKUP%"; |
| 8 |
count(*) |
| 9 |
16 |
| 10 |
"Backup data buffer and backup log buffer should not be empty" |
| 11 |
update t1 set val = REPEAT('x', 1000) where id < 25; |
| 12 |
"Backup log buffer usage should increase due to UPDATE ops during backup" |
| 13 |
"Backup complete, backup buffer usage should return to zero" |
| 14 |
select count(*) from ndbinfo.logbuffers where log_type like "BACKUP%" and used > 0; |
| 15 |
count(*) |
| 16 |
0 |