Improved MySQL index handling on radius lookups (fixes #599)

This commit is contained in:
Intelli 2024-08-15 19:23:39 -06:00
parent d2bffb2103
commit 1cf940e201

View File

@ -705,7 +705,7 @@ public class Lookup extends Queue {
index = "USE INDEX(wid) IGNORE INDEX(type,user) ";
}
if ((restrictWorld && (users.length() > 0 || includeBlock.length() > 0 || includeEntity.length() > 0))) {
index = "";
index = "IGNORE INDEX(PRIMARY) ";
}
}