diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-28 17:51:14 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-28 17:52:24 +0100 |
| commit | e338ada43ca8221b09fe8d2ae66c5d95f29611d6 (patch) | |
| tree | 8ab60e9720638accb45af500bd544f9ffcf049a2 /dashboard/app/api.go | |
| parent | 7bd85f2aea5965969505c075cc4451ac69c650b0 (diff) | |
dashboard/app: fix purging of old crashes
We sorted by Report (which is a random int ID) instead of ReportLen.
Sort by ReportLen (order is opposite of what of queryCrashesForBug uses).
Diffstat (limited to 'dashboard/app/api.go')
| -rw-r--r-- | dashboard/app/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go index 232316545..a3a466ce6 100644 --- a/dashboard/app/api.go +++ b/dashboard/app/api.go @@ -468,7 +468,7 @@ func purgeOldCrashes(c context.Context, bug *Bug, bugKey *datastore.Key) { Ancestor(bugKey). Filter("ReproC=", 0). Filter("ReproSyz=", 0). - Order("Report"). + Order("ReportLen"). Order("Time"). Limit(maxCrashes+batchSize). GetAll(c, &crashes) |
