From 8b3cf2869eedc106fffaad449d6c7923e35f5236 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 19 Feb 2013 17:29:25 -0500 Subject: [PATCH] Only status 200s should be removed from the db. --- xonstat/util/xs_interceptor/xs_interceptor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xonstat/util/xs_interceptor/xs_interceptor.go b/xonstat/util/xs_interceptor/xs_interceptor.go index ddc8af8..a968c2c 100644 --- a/xonstat/util/xs_interceptor/xs_interceptor.go +++ b/xonstat/util/xs_interceptor/xs_interceptor.go @@ -235,7 +235,9 @@ func resubmit(url string) { fmt.Printf("Request #%d: %s\n", request_id, res.Status) - if res.StatusCode < 500 { + // undeliverables requests will still live in the database, + // but we can clear out the 200 ones for sure + if res.StatusCode == 200 { successfulRequests = append(successfulRequests, request_id) } } -- 2.39.2