Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

A question about the source code for the developers (2 replies)

$
0
0
Hi,I am currently reviewing the source code of DblqhMain.cpp and have found the following piece of code that I don't understand:

if (seqNoReplica == 0 || activeCreat == Fragrecord::AC_NR_COPY)
{
jam();
commitReplyLab(signal);
return;
}//if
if (seqNoReplica == 0)
{
jam();
completeTransLastLab(signal);
}

inside the function Dblqh::tupcommit_conf(Signal* signal,
TcConnectionrec * tcPtrP,
Fragrecord * regFragptr)

It seems the second 'if' never gets a chance to be executed unless the '||' operator in the first 'if' is not the regular Logical OR, but an overloaded operator defined by MySQL Cluster. I can't find such an definition in the file though.

Could the developer please explain what is going on here? I have seen similar construct in DbtcMain.cpp too, so it seems I have missed something...The version I am using is gpl-7.4.10

Thanks,
David

Viewing all articles
Browse latest Browse all 1560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>