last bug fix revealed another bug.
fix buffer management when parsing table descriptor
storage/ndb/src/kernel/blocks/backup/Backup.cpp:
remove pages on backup record, use buffer in file record instead
storage/ndb/src/kernel/blocks/backup/Backup.hpp:
remove useless pages on backup record
file buffer is good enough
storage/ndb/src/kernel/blocks/backup/BackupInit.cpp:
remove useless pages on backup record
file buffer is good enough
fix bug in LCP + extent alloc
storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp:
fix for page allocation
storage/ndb/src/kernel/blocks/pgman.cpp:
Fix LCP in pgman with more than 32 pages in one bucket
storage/ndb/src/kernel/blocks/tsman.cpp:
ifdef printouts
storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp:
qd fix for inconsistency tsman/tup
storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp:
Increase extent pool
storage/ndb/src/kernel/blocks/pgman.cpp:
Increase page entry pool
Run LCP loop wo/ continueb
storage/ndb/src/kernel/blocks/tsman.cpp:
Fix creating of datafiles with more than 1 extent page
Add massive printout when failure detected
storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp:
Add dumping of replica info
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
Add dumping of replica info
fix typo + add error code to printable list
storage/ndb/include/kernel/signaldata/Extent.hpp:
Set correct error code
storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp:
err is already negative
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp:
Set correct error code
storage/ndb/src/ndbapi/ndberror.c:
Add error code to printable list
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
hide blob event ops under main op
storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
hide blob event ops under main op
storage/ndb/src/ndbapi/NdbBlob.cpp:
tinyblob of course has no blob table and no blob op
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
tinyblob of course has no blob table and no blob op
storage/ndb/test/ndbapi/test_event_merge.cpp:
tinyblob of course has no blob table and no blob op
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
Fix sol10-amd64-a compile failure, conflict with system headers.
sql/log.cc:
Rename macros to fix AIX conflict with system LOG_GENERAL macros.
sql/mysql_priv.h:
Rename macros to fix AIX conflict with system LOG_GENERAL macros.
sql/sql_delete.cc:
Rename macros to fix AIX conflict with system LOG_GENERAL macros.
sql/table.cc:
Rename macros to fix AIX conflict with system LOG_GENERAL macros.
sql/sql_parse.cc:
Fix HPUX compile failure, initializing char * with const char *
BACKUP previous set up triggers using DICT.
This lead to all kind of trouble.
An smaller alternative to using SUMA for backup
is to just make BACKUP handle triggers to TUP directly.
This way all triggers will be totally local,
and error handling is much simpler.
--- old impl.
Start: Master recives GSN_DEFINE_BACKUP_CONF from all participants
Master sends CREATE_TRIG_REQ for all tables to local DICT (dict master)
Master sends START_BACKUP_REQ to all paricipants with trigger ids from DICT
Master sends ALTER_TRIG_REQ (online) to local DICT
Master waits for GCP
Master starts distributed scan
When scan has finished
Master waits for GCP
Master sends DROP_TRIGGER to local DICT
Master sends STOP_BACKUP_REQ to all participants
--- new impl.
Start: Master recives GSN_DEFINE_BACKUP_CONF from all participants
Master sends START_BACKUP_REQ to all paricipants
Participand sends CREATE_TRIG_REQ for all tables to local TUP
Master waits for GCP
Master starts distributed scan
When scan has finished
Master waits for GCP
Master sends STOP_BACKUP_REQ to all participants
Participant sends DROP_TRIGGER to local TUP
Changes:
All trigger handling is _local_
This implies, that abort (e.g due to node failure) can be _local_
fix testBackup test so that it will run successfully with the (now correct)
backup trigger code.
storage/ndb/include/kernel/signaldata/BackupImpl.hpp:
rework START_BACKUP signals as we no longer need tableId and triggerIds.
storage/ndb/src/common/debugger/signaldata/BackupImpl.cpp:
START_BACKUP_REQ no longer has tableIds and trigger ids
storage/ndb/src/kernel/blocks/backup/Backup.cpp:
Use TUP triggers directly.
removes ALTER trigger
simplifies DROP triggers
changes to node failure handling
changes in signal order
use SlaveData to track slave status.
storage/ndb/src/kernel/blocks/backup/Backup.hpp:
- remove ALTER_TRIG (now unused)
- add signalNo to BackupRecord
- add SlaveData
- remove dead items from MasterData
- update prototype of startBackupReply
storage/ndb/src/kernel/blocks/backup/Backup.txt:
Update signals for new backup code.
storage/ndb/src/kernel/blocks/backup/BackupInit.cpp:
remove ALTER_TRIG REF and CONF as we no longer use them.
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
Add comment about meaning of triggerId
Add sender BlockNumber parameter to dropTrigger.
storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp:
for SUBSCRIPTION triggers, make it so that the trigger ids are private to each block.
storage/ndb/test/ndbapi/testBackup.cpp:
Don't do initial restart, just a restart. This is to avoid cache issues with
schema versions
storage/ndb/test/src/NdbBackup.cpp:
Update error insertions.
mysql-test/ndb/ndbcluster.sh:
Upgraded DataMemory to 20M so that ndb_restore tests fit in memory
mysql-test/r/ndb_config.result:
Upgraded DataMemory to 20M so that ndb_restore tests fit in memory
mysql-test/r/ndb_restore.result:
Added check that no extra objects exist before starting
Added printout from erronous node group map
mysql-test/t/disabled.def:
Activated ndb_restore again
mysql-test/t/ndb_restore.test:
Added new test cases and handling of error case for node group maps
storage/ndb/tools/restore/consumer_restore.cpp:
Removed debug printouts
storage/ndb/tools/restore/restore_main.cpp:
Removed debug printouts
ndbout => info
some ndbout => err
and yet others
ndbout => debug
storage/ndb/include/kernel/signaldata/CreateTable.hpp:
New error code for rope pool
storage/ndb/include/mgmapi/mgmapi_config_parameters.h:
New error code for rope pool
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
New error code for rope pool
storage/ndb/src/mgmsrv/ConfigInfo.cpp:
New error code for rope pool
storage/ndb/src/ndbapi/ndberror.c:
New error code for rope pool
storage/ndb/include/ndbapi/NdbBlob.hpp:
rbr blobs ndb api support
storage/ndb/include/ndbapi/NdbDictionary.hpp:
rbr blobs ndb api support
storage/ndb/include/ndbapi/NdbEventOperation.hpp:
rbr blobs ndb api support
storage/ndb/ndbapi-examples/ndbapi_event/Makefile:
rbr blobs ndb api support
storage/ndb/ndbapi-examples/ndbapi_event/ndbapi_event.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbBlob.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbDictionary.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbEventOperation.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
rbr blobs ndb api support
storage/ndb/src/ndbapi/NdbEventOperationImpl.hpp:
rbr blobs ndb api support
storage/ndb/test/ndbapi/test_event_merge.cpp:
rbr blobs ndb api support