uq.condAnd(VolumeVO_.uuid, Op.IN, volumes);
uq.delete();
logger.debug(String.format("delete volumes%s because the host[uuid:%s] is removed from" +
" the local storage[name:%s, uuid:%s]", volumes, hostUuid, self.getName(), self.getUuid()));
}
<BUG>if (!snapshots.isEmpty()) {
uq = UpdateQuery.New();
uq.entity(VolumeSnapshotVO.class);</BUG>
uq.condAnd(VolumeSnapshotVO_.uuid, Op.IN, snapshots);
uq.delete();

uq.condAnd(VolumeVO_.uuid, Op.IN, volumes);
uq.delete();
logger.debug(String.format("delete volumes%s because the host[uuid:%s] is removed from" +
" the local storage[name:%s, uuid:%s]", volumes, hostUuid, self.getName(), self.getUuid()));
}
if (!snapshots.isEmpty()) {
uq = UpdateQuery.New(VolumeSnapshotVO.class);
uq.condAnd(VolumeSnapshotVO_.uuid, Op.IN, snapshots);
uq.delete();
