if(!fieldsEqual(oldRowDef, oldRow, newRowDef, newRow, nkeys, indexRowComposition)) {
UPDATE_INDEX_TAP.in();
try {
long oldZValue = -1;
long newZValue = -1;
SpatialColumnHandler spatialColumnHandler = null;
if (index.isSpatial()) {
spatialColumnHandler = new SpatialColumnHandler(index);
oldZValue = spatialColumnHandler.zValue(oldRow);
newZValue = spatialColumnHandler.zValue(newRow);
}
deleteIndexRow(session, index, oldRow, hKey, indexRowBuffer, spatialColumnHandler, oldZValue, false);
writeIndexRow(session, index, newRow, hKey, indexRowBuffer, spatialColumnHandler, newZValue, false);
} finally {
UPDATE_INDEX_TAP.out();