summaryrefslogtreecommitdiff
path: root/storage/ndb
diff options
context:
space:
mode:
authorjonas@perch.ndb.mysql.com <>2006-10-18 10:07:02 +0200
committerjonas@perch.ndb.mysql.com <>2006-10-18 10:07:02 +0200
commit5bce99a90b15940675f35d716b120d744c53c8e9 (patch)
tree3cb9ca8952a6eb524aa5f959f29290f2b3fb8e11 /storage/ndb
parent2f7b2611f78bf0158583a1eaaeaf249c5f65408b (diff)
downloadmariadb-git-5bce99a90b15940675f35d716b120d744c53c8e9.tar.gz
ndb -
Fix uninit variable, causing problems with auto-increment on rhas3-x86 (only found on this platform, really weird)
Diffstat (limited to 'storage/ndb')
-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);