View | Details | Raw Unified | Return to issue 14512
Collapse All | Expand All

(-)db/FullVectorBtree.java (-1 / +1 lines)
Lines 157-163 Link Here
157
      newbl._data[0] = (byte)0xFF;
157
      newbl._data[0] = (byte)0xFF;
158
  
158
  
159
      // count entries
159
      // count entries
160
      assert(_free > 0 && _free <= _blockSize);
160
      tryAssert(_free > 0 && _free <= _blockSize);
161
      for (count = i = 0; i < _free; count++, i += _vecLen+1-(_data[i]&0xFF))
161
      for (count = i = 0; i < _free; count++, i += _vecLen+1-(_data[i]&0xFF))
162
	;
162
	;
163
      half = (int)(count*SplitRatio + 1);
163
      half = (int)(count*SplitRatio + 1);
(-)db/VectorBtree.java (-2 / +2 lines)
Lines 274-280 Link Here
274
    return accessBlock(bl.integerAt(index*4));
274
    return accessBlock(bl.integerAt(index*4));
275
  }
275
  }
276
276
277
  public static void assert(boolean assertion) {
277
  public static void tryAssert(boolean assertion) {
278
    if (assertion == false)
278
    if (assertion == false)
279
      System.err.println("assertion failed");
279
      System.err.println("assertion failed");
280
  }
280
  }
Lines 349-355 Link Here
349
	      }
349
	      }
350
	    else
350
	    else
351
	      {
351
	      {
352
		assert(stack.size() == 0);
352
		tryAssert(stack.size() == 0);
353
		return false;
353
		return false;
354
	      }
354
	      }
355
	  }
355
	  }

Return to issue 14512