[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Try harder only to run a second relay-search query when necessary.
commit 075fd8e0df632d6afa88cacccc47f845e07031a4
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Tue Jan 10 11:07:06 2012 +0100
Try harder only to run a second relay-search query when necessary.
444f874c missed the fact that the first query may return more than 31
results, in which case we don't have to run the second query anymore.
Include this case.
---
.../torproject/ernie/web/RelaySearchServlet.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/ernie/web/RelaySearchServlet.java b/src/org/torproject/ernie/web/RelaySearchServlet.java
index 82d223b..8d47667 100644
--- a/src/org/torproject/ernie/web/RelaySearchServlet.java
+++ b/src/org/torproject/ernie/web/RelaySearchServlet.java
@@ -411,7 +411,7 @@ public class RelaySearchServlet extends HttpServlet {
}
rs.close();
statement.close();
- if (matches == 31) {
+ if (matches >= 31) {
queries.clear();
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits