Don't do anything when input doclists are both empty. Ticket #2774 (CVS 4546)
FossilOrigin-Name: 75cb46f82a6a95dbe9e279dede299bafa2e91cae
This commit is contained in:
+2
-2
@@ -1335,7 +1335,7 @@ static void docListUnion(
|
||||
DLWriter writer;
|
||||
|
||||
if( nLeft==0 ){
|
||||
dataBufferAppend(pOut, pRight, nRight);
|
||||
if( nRight!=0) dataBufferAppend(pOut, pRight, nRight);
|
||||
return;
|
||||
}
|
||||
if( nRight==0 ){
|
||||
@@ -1633,7 +1633,7 @@ static void docListOrMerge(
|
||||
DLWriter writer;
|
||||
|
||||
if( nLeft==0 ){
|
||||
dataBufferAppend(pOut, pRight, nRight);
|
||||
if( nRight!=0 ) dataBufferAppend(pOut, pRight, nRight);
|
||||
return;
|
||||
}
|
||||
if( nRight==0 ){
|
||||
|
||||
Reference in New Issue
Block a user