Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: The ndbapi_simple_dual bug and the patch....

From: Liang Chen <clzzclzz(at)gmail.com>
Date: Wed Aug 01 2007 - 21:21:08 EDT


Sorry. I send the wrong patch file last time. This one is right.

  • /home/liang/code/mysql-5.1-ndb-bak/storage/ndb/ndbapi-examples/ndbapi_simple_dual/main.cpp 2007-05-30 05:36:06.000000000 +0800 +++ /home/liang/code/mysql-5.1-ndb/storage/ndb/ndbapi-examples/ndbapi_simple_dual/main.cpp 2007-08-02 08:54:24.000000000 +0800 @@ -333,6 +333,9 @@ if (myRecAttr == NULL) APIERROR(myTransaction->getNdbError());
     if(myTransaction->execute( NdbTransaction::Commit ) == -1)
+      APIERROR(myTransaction->getNdbError());
+
+ if (myTransaction->getNdbError().classification == NdbError::NoDataFound)
       if (i == 3) {
 	std::cout << "Detected that deleted tuple doesn't exist!" << std::endl;
       } else {

On 8/1/07, Stewart Smith <stewart@mysql.com> wrote:
> On Wed, 2007-08-01 at 22:45 +0800, Liang Chen wrote:
> > The branch: bk://mysql.bkbits.net/mysql-5.1-ndb/
> > The bug description : http://bugs.mysql.com/bug.php?id=30178
> > File: storage/ndb/ndbapi-examples/ndbapi_simple_dual/main.cpp
> > --- /usr/local/src/mysql-5.1-ndb-bak/storage/ndb/ndbapi-examples/ndbapi_simple_dual/main.cpp 2007-05-30 05:36:06.000000000 +0800
> > +++ ./main 1970-01-01 08:00:00.000000000 +0800

>

> I just see removal...
> $ diffstat /tmp/filename.patch
> main | 347
> -------------------------------------------------------------------
> 1 file changed, 347 deletions(-)
>

> --
> Stewart Smith, Senior Software Engineer
> MySQL AB, www.mysql.com
> Office: +14082136540 Ext: 6616
> VoIP: 6616@sip.us.mysql.com
> Mobile: +61 4 3 8844 332
>

> Jumpstart your cluster:
> http://www.mysql.com/consulting/packaged/cluster.html
>
>
-- 
Sincerely,
liang

-- 
MySQL Internals Mailing List
For list archives: 
http://lists.mysql.com/internals
To unsubscribe:    
http://lists.mysql.com/internals?unsub=lists@pantek.com
Received on Wed Aug 1 21:21:23 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:06:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library