txn.getIndexChecks(false) == null) {
check.blockUntilReady(txn);
if (!check.check(session, txn, index)) {
// Using RowData, can give better error than check.throwException().
String msg = formatIndexRowString(session, rowData, index);
throw new DuplicateKeyException(index.getIndexName(), msg);
}
}
else {
txn.getIndexChecks(false).add(session, txn, index, check);
}