Commit b6e43162 authored by Costin Grigoras's avatar Costin Grigoras
Browse files

Add query timeout

parent 2fef0a5f
......@@ -325,6 +325,8 @@ public final class GUIDUtils {
monitor.incrementCounter("GUID_db_lookup");
db.setReadOnly(true);
db.setQueryTimeout(600);
if (!db.query("SELECT * FROM G" + tableName + "L WHERE guid=string2binary(?);", false, guid.toString()))
throw new IllegalStateException("Failed querying the G" + tableName + "L table for guid " + guid);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment