Menu

#40 code enhancement

Bugs in current CVS
open
nobody
None
5
2011-06-24
2011-06-24
pc
No

hello,
I'm testing XDB 3.1.2 to use it in a free project. It could replace BDE which is not free.
I found today two bugs and I present to you for the community :
1)
ostream& operator<< (ostream& os, const xbString& xbs)
{
return os << xbs.data;
}
might be replace by
ostream& operator<< (ostream& os, const xbString& xbs)
{
return ((xb.data) ? (os << xbs.data) : os);
}
because xb.data can be equal to NULL
2)
xbndx.cpp at fn SplitINode : the var "offset" is not initialized (if pos=0) at
line "startPos=nodeToSplit->Leaf.NoOfKeysThisNode-newNodeToSplitSize+pos
+offset".

thank you for this good job usefull

Discussion


Log in to post a comment.

MongoDB Logo MongoDB