From f2dcf982d81d53f59a2b88c33fc51f267457b7f7 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sun, 28 Aug 2016 20:29:53 +0200 Subject: [PATCH] Fix stats collections in some cases. Calling a -with-timing from within a with-stats-collection macro is redundant and will have the numbers counted twice. Which in this case didn't happen because the stats label was manually copied, but borked with a typo in one copy. --- src/pgsql/pgsql-create-schema.lisp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pgsql/pgsql-create-schema.lisp b/src/pgsql/pgsql-create-schema.lisp index cf2c1ec4..479b634a 100644 --- a/src/pgsql/pgsql-create-schema.lisp +++ b/src/pgsql/pgsql-create-schema.lisp @@ -315,11 +315,10 @@ (lp:end-kernel :wait t)) ;; turn unique indexes into pkeys now - (with-stats-collection ("Constraints" :section section) - (pgsql-connect-and-execute-with-timing target - section - "Constrants" - pkeys))))))) + (pgsql-connect-and-execute-with-timing target + section + "Constraints" + pkeys)))))) ;;;