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:
Michael Bayne
2008-09-15 18:33:21 +00:00
parent 2f57697c32
commit 7e8c7fadcb
@@ -281,7 +281,9 @@ public abstract class FindAllQuery<T extends PersistentRecord>
got.add(key);
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,
"wanted", keys, "got", got, "dups", dups, new Exception());
}