summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/ha_ndbcluster.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index f5c0f3dc173..6a80ba83017 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3061,8 +3061,11 @@ int ha_ndbcluster::end_bulk_insert()
no_uncommitted_rows_execute_failure();
my_errno= error= ndb_err(trans);
}
- int res= trans->restart();
- DBUG_ASSERT(res == 0);
+ else
+ {
+ int res= trans->restart();
+ DBUG_ASSERT(res == 0);
+ }
}
}