TEI_FLAGS_ADDED
flag = TEI_FLAGS_ADDED;
if (ptei->flags & TEI_FLAGS_ADDED)
if ((ptei->flags & TEI_FLAGS_ADDED) != 0 && rollback == 0) {