diff options
author | unknown <patg@patrick.local> | 2005-04-01 12:32:17 -0800 |
---|---|---|
committer | unknown <patg@patrick.local> | 2005-04-01 12:32:17 -0800 |
commit | 26e2ebb727e9e8b6961464d7869a84689ea36e8c (patch) | |
tree | 389228d07d324be3e962fefab032b134daa8021a /ndb/src/ndbapi | |
parent | 5f705b8fb60ed110528222079514280603d54fe5 (diff) | |
parent | dddad632b1fcf05c7371be2c8eb1f1dc0da8831f (diff) | |
download | mariadb-git-26e2ebb727e9e8b6961464d7869a84689ea36e8c.tar.gz |
5.0 to 5.1 merge
mysql-test/r/grant.result:
Auto merged
scripts/mysql_create_system_tables.sh:
Auto merged
scripts/mysql_fix_privilege_tables.sql:
Auto merged
sql/Makefile.am:
Auto merged
sql/log.cc:
Auto merged
sql/log_event.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/mysqld.cc:
Auto merged
sql/slave.cc:
Auto merged
sql/slave.h:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_parse.cc:
Auto merged
configure.in:
merge of 5.0 to 5.1, version info and NDB_VERSION_() conflicts
libmysqld/Makefile.am:
merge of Makefile sql_sources list
sql/sql_acl.h:
merge, no need to hand resolve
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r-- | ndb/src/ndbapi/DictCache.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ndb/src/ndbapi/DictCache.cpp b/ndb/src/ndbapi/DictCache.cpp index afdb37aa53f..da9d5b70d47 100644 --- a/ndb/src/ndbapi/DictCache.cpp +++ b/ndb/src/ndbapi/DictCache.cpp @@ -24,12 +24,11 @@ Ndb_local_table_info * Ndb_local_table_info::create(NdbTableImpl *table_impl, Uint32 sz) { - if (sz % 8 != 0) // round to Uint64 - sz += 8 - sz % 8; - void *data= malloc(sizeof(NdbTableImpl)+sz-8); + Uint32 tot_size= sizeof(NdbTableImpl *) + ((sz+7) & ~7); // round to Uint64 + void *data= malloc(tot_size); if (data == 0) return 0; - memset(data,0,sizeof(NdbTableImpl)+sz-8); + memset(data, 0, tot_size); new (data) Ndb_local_table_info(table_impl); return (Ndb_local_table_info *) data; } |