Terminate sortkey with prejudice
It has not been used by the search system since 2.8 and all code using it in a meaningful way in Gerrit has been removed. Now we can remove it from the database and API classes. This requires a schema upgrade to delete the column and rebuild some indexes to use last_updated_on instead of sort_key. Change-Id: I87660f8e0e44bf11bafd9fa24f990351759df3fb
This commit is contained in:
@@ -44,6 +44,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -173,7 +174,7 @@ public class ReceiveCommitsAdvertiseRefsHook implements AdvertiseRefsHook {
|
||||
return toInclude;
|
||||
}
|
||||
|
||||
private Iterable<ChangeData> queryRecentChanges(int limit)
|
||||
private List<ChangeData> queryRecentChanges(int limit)
|
||||
throws OrmException {
|
||||
QueryProcessor qp = queryProcessor.get();
|
||||
qp.setLimit(limit);
|
||||
|
||||
Reference in New Issue
Block a user