Don't log a warning if we don't get a result for every primary key provided
when we're doing a query with primary keys provided by a random caller. We have know idea where they got those keys or where they have been before we got our filthy mitts on them.
This commit is contained in:
@@ -281,7 +281,9 @@ public abstract class FindAllQuery<T extends PersistentRecord>
|
|||||||
got.add(key);
|
got.add(key);
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
if (cnt != keys.size()) {
|
// if we get more results than we planned, or if we're doing a two-phase query and got
|
||||||
|
// fewer, then complain
|
||||||
|
if (cnt > keys.size() || (origStmt != null && cnt < keys.size())) {
|
||||||
log.warning("Row count mismatch in second pass", "origQuery", origStmt,
|
log.warning("Row count mismatch in second pass", "origQuery", origStmt,
|
||||||
"wanted", keys, "got", got, "dups", dups, new Exception());
|
"wanted", keys, "got", got, "dups", dups, new Exception());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user