From bf88f5f06ce3ac925ada2b9844bdadf950d689a3 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 17 Mar 2014 23:00:18 -0700 Subject: [PATCH] sync: missing handler return + wording change Change-Id: Iebd5344a0a0e1418cb48c92b91858ebf2f9486c8 --- pkg/server/sync.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/server/sync.go b/pkg/server/sync.go index 14fca2c65..fb78f20f2 100644 --- a/pkg/server/sync.go +++ b/pkg/server/sync.go @@ -311,6 +311,7 @@ func (sh *SyncHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { if xsrftoken.Valid(token, auth.ProcessRandom(), "user", "runFullValidate") { sh.startFullValidation() http.Redirect(rw, req, "./", http.StatusFound) + return } } http.Error(rw, "Bad POST request", http.StatusBadRequest) @@ -364,7 +365,7 @@ func (sh *SyncHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { f("
  • Source bytes seen: %d
  • ", sh.vsrcBytes) f("
  • Dest blobs seen: %d
  • ", sh.vdestCount) f("
  • Dest bytes seen: %d
  • ", sh.vdestBytes) - f("
  • Blobs found missing + fixed: %d
  • ", sh.vmissing) + f("
  • Blobs found missing & enqueued: %d
  • ", sh.vmissing) if len(sh.vshardErrs) > 0 { f("
  • Validation errors: %s
  • ", sh.vshardErrs) }