// Make sure to check if the segment still
// exists in the index. It could have been
// removed by a cancellation request since
// then.
if (index.contains(seg.getHeader())) {
index.linkSqlStatement(
seg.getHeader(), stmt);
atLeastOneActive = true;
}
if (!atLeastOneActive) {
// There are no segments to load.