summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <jonas@perch.ndb.mysql.com>2006-10-18 10:07:02 +0200
committerunknown <jonas@perch.ndb.mysql.com>2006-10-18 10:07:02 +0200
commitde3b0d2d4af7eb33dbccb08f7f82f8a3380db3b2 (patch)
tree3cb9ca8952a6eb524aa5f959f29290f2b3fb8e11 /storage
parent86921c180f0120d5e1b0d13de516dfa8e5efa15d (diff)
downloadmariadb-git-de3b0d2d4af7eb33dbccb08f7f82f8a3380db3b2.tar.gz
ndb -
Fix uninit variable, causing problems with auto-increment on rhas3-x86 (only found on this platform, really weird) storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp: Fix uninit variable, causing problems with auto-increment on rhas3-x86 (only found on this platform, really weird)
Diffstat (limited to 'storage')
-rw-r--r--storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp b/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
index 3118164badd..d9710cc2549 100644
--- a/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
+++ b/storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
@@ -1039,22 +1039,19 @@ int Dbtup::handleUpdateReq(Signal* signal,
tup_version= (tup_version + 1) & ZTUP_VERSION_MASK;
operPtrP->tupVersion= tup_version;
- int retValue;
if (!req_struct->interpreted_exec) {
jam();
- retValue= updateAttributes(req_struct,
- &cinBuffer[0],
- req_struct->attrinfo_len);
+ int retValue = updateAttributes(req_struct,
+ &cinBuffer[0],
+ req_struct->attrinfo_len);
+ if (unlikely(retValue == -1))
+ goto error;
} else {
jam();
if (unlikely(interpreterStartLab(signal, req_struct) == -1))
return -1;
}
- if (retValue == -1) {
- goto error;
- }
-
if (regTabPtr->need_shrink())
{
shrink_tuple(req_struct, sizes+2, regTabPtr, disk);
@@ -1073,7 +1070,7 @@ int Dbtup::handleUpdateReq(Signal* signal,
jam();
setChecksum(req_struct->m_tuple_ptr, regTabPtr);
}
- return retValue;
+ return 0;
error:
tupkeyErrorLab(signal);