summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authormskold@mysql.com <>2005-05-08 22:42:40 +0200
committermskold@mysql.com <>2005-05-08 22:42:40 +0200
commit66f881a8f6e7622401a4467fca28243641d4679e (patch)
tree28dbb38095b85a2e0d934dd2b39be185fbbd39e7 /sql/ha_ndbcluster.cc
parentbea71274f7a0321d10295e8327c7301b7636764d (diff)
downloadmariadb-git-66f881a8f6e7622401a4467fca28243641d4679e.tar.gz
Removed call to cond_push for empty cond
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc29
1 files changed, 13 insertions, 16 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index e175b2b95f9..372a178b59a 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -6106,24 +6106,21 @@ COND*
ha_ndbcluster::cond_push(const COND *cond)
{
DBUG_ENTER("cond_push");
- if (cond)
- {
- Ndb_cond_stack *ndb_cond = new Ndb_cond_stack();
- DBUG_EXECUTE("where",print_where((COND *)cond, m_tabname););
- if (m_cond_stack)
+ Ndb_cond_stack *ndb_cond = new Ndb_cond_stack();
+ DBUG_EXECUTE("where",print_where((COND *)cond, m_tabname););
+ if (m_cond_stack)
ndb_cond->next= m_cond_stack;
- else
- ndb_cond->next= NULL;
- m_cond_stack= ndb_cond;
-
- if (serialize_cond(cond, ndb_cond))
- {
+ else
+ ndb_cond->next= NULL;
+ m_cond_stack= ndb_cond;
+
+ if (serialize_cond(cond, ndb_cond))
+ {
DBUG_RETURN(NULL);
- }
- else
- {
- cond_pop();
- }
+ }
+ else
+ {
+ cond_pop();
}
DBUG_RETURN(cond);
}