From dd20870abd138f0918705d42deddefcb6b8918f4 Mon Sep 17 00:00:00 2001 From: kishoramballi Date: Mon, 12 Jan 2009 10:48:31 +0000 Subject: [PATCH] Fix for Bug # 2500932 --- src/storage/HashIndex.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/storage/HashIndex.cxx b/src/storage/HashIndex.cxx index 971ad377..34c872b0 100644 --- a/src/storage/HashIndex.cxx +++ b/src/storage/HashIndex.cxx @@ -561,10 +561,8 @@ DbRetVal HashIndex::insertLogicalUndoLog(Database *sysdb, void *data) Chunk *hChunk = (Chunk *) ((CINDEX *)info->indexPtr_)->hashNodeChunk_; HashIndexNode *head = (HashIndexNode *)((Bucket *)info->bucket_)->bucketList_; BucketList list(head); - if (head) { - list.insert(hChunk, tbl->db_, info->keyPtr_, info->tuple_); - ((Bucket *)info->bucket_)->bucketList_ = list.getBucketListHead(); - } + list.insert(hChunk, tbl->db_, info->keyPtr_, info->tuple_); + ((Bucket *)info->bucket_)->bucketList_ = list.getBucketListHead(); return OK; } @@ -575,9 +573,7 @@ DbRetVal HashIndex::deleteLogicalUndoLog(Database *sysdb, void *data) Chunk *hChunk = (Chunk *) ((CINDEX *)info->indexPtr_)->hashNodeChunk_; HashIndexNode *head = (HashIndexNode *)((Bucket *)info->bucket_)->bucketList_; BucketList list(head); - if (head) { - list.remove(hChunk, tbl->db_, info->keyPtr_); - ((Bucket *)info->bucket_)->bucketList_ = list.getBucketListHead(); - } + list.remove(hChunk, tbl->db_, info->keyPtr_); + ((Bucket *)info->bucket_)->bucketList_ = list.getBucketListHead(); return OK; } -- 2.11.4.GIT