summaryrefslogtreecommitdiff
path: root/storage/ndb/include
diff options
context:
space:
mode:
authorunknown <knielsen@loke.(none)>2007-10-25 10:48:42 +0200
committerunknown <knielsen@loke.(none)>2007-10-25 10:48:42 +0200
commit6825b79b41f47e862a17c22d4450b3ce4cdde2af (patch)
tree191b2cfabf66c1d2a7c0462b471e2cd3bd0e9f74 /storage/ndb/include
parent9cae2b798440a6c3c42fb6f6c1bbfd3b565bd33c (diff)
parent29186ecd8d8d1fc9f212b8a127cee6c9656e1dff (diff)
downloadmariadb-git-6825b79b41f47e862a17c22d4450b3ce4cdde2af.tar.gz
Merge loke.(none):/home/knielsen/devel/mysql-5.1-telco-gca
into loke.(none):/home/knielsen/devel/mysql-5.1-new-ndb storage/ndb/include/kernel/AttributeHeader.hpp: Auto merged storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp: Auto merged storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp: Auto merged storage/ndb/src/ndbapi/NdbOperationDefine.cpp: SCCS merged
Diffstat (limited to 'storage/ndb/include')
-rw-r--r--storage/ndb/include/kernel/AttributeHeader.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/storage/ndb/include/kernel/AttributeHeader.hpp b/storage/ndb/include/kernel/AttributeHeader.hpp
index 613e3d19d1b..52f93b6cd05 100644
--- a/storage/ndb/include/kernel/AttributeHeader.hpp
+++ b/storage/ndb/include/kernel/AttributeHeader.hpp
@@ -52,8 +52,7 @@ public:
// NOTE: in 5.1 ctors and init take size in bytes
/** Initialize AttributeHeader at location aHeaderPtr */
- static AttributeHeader& init(void* aHeaderPtr, Uint32 anAttributeId,
- Uint32 aByteSize);
+ static void init(Uint32* aHeaderPtr, Uint32 anAttributeId, Uint32 aByteSize);
/** Returns size of AttributeHeader (usually one or two words) */
Uint32 getHeaderSize() const; // In 32-bit words
@@ -113,10 +112,11 @@ public:
*/
inline
-AttributeHeader& AttributeHeader::init(void* aHeaderPtr, Uint32 anAttributeId,
- Uint32 aByteSize)
+void AttributeHeader::init(Uint32* aHeaderPtr, Uint32 anAttributeId,
+ Uint32 aByteSize)
{
- return * new (aHeaderPtr) AttributeHeader(anAttributeId, aByteSize);
+ AttributeHeader ah(anAttributeId, aByteSize);
+ *aHeaderPtr = ah.m_value;
}
inline