summaryrefslogtreecommitdiff
path: root/storage/ndb/test/src/NdbBackup.cpp
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2006-10-18 18:19:16 +1000
committerunknown <stewart@willster.(none)>2006-10-18 18:19:16 +1000
commit7968c44c0edb8c0d098f9ba81455ee29b855e3cc (patch)
treebf9401d2fa3d6c4201b4bc2e2c91e8e5bca8d1ee /storage/ndb/test/src/NdbBackup.cpp
parent675557c844ed2335818e355459ec9217aafcb9d5 (diff)
downloadmariadb-git-7968c44c0edb8c0d098f9ba81455ee29b855e3cc.tar.gz
Bug #19148 Backup causes cluster down if _really_ early abort happens
Early abort, failing to allocate buffers, would go down the abort track and end up trying to sendDropTriggers (as the standard stop backup does). However, it is possible to not have any tables yet defined in the backup (due to allocating buffers is before this). Simple check in sendDropTrig (and continue to next step). Files may be open, so we continue to close them. Also updated ERROR_Codes (and added one to test this bug). storage/ndb/src/kernel/blocks/ERROR_codes.txt: update BACKUP error insert codes to reflect current reality. storage/ndb/src/kernel/blocks/backup/Backup.cpp: Allow for early abort when no tables have been included in backup. Allow for abort when file records have been seized but not yet allocated to specific uses (is the case when buffer allocation fails) storage/ndb/src/kernel/blocks/backup/Backup.hpp: initialize BackupRecord file Ptrs storage/ndb/test/src/NdbBackup.cpp: Add extra failure codes for buffer allocation failure in backup
Diffstat (limited to 'storage/ndb/test/src/NdbBackup.cpp')
-rw-r--r--storage/ndb/test/src/NdbBackup.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/ndb/test/src/NdbBackup.cpp b/storage/ndb/test/src/NdbBackup.cpp
index 42ebf31fc47..13572ede1a4 100644
--- a/storage/ndb/test/src/NdbBackup.cpp
+++ b/storage/ndb/test/src/NdbBackup.cpp
@@ -350,7 +350,8 @@ int
FailS_codes[] = {
10025,
10027,
- 10033
+ 10033,
+ 10035
};
int
@@ -362,7 +363,8 @@ FailM_codes[] = {
10027,
10028,
10031,
- 10033
+ 10033,
+ 10035
};
int