From d79489dc6f2cded724546c7df2181ec8a290fb8a Mon Sep 17 00:00:00 2001 From: Teodor Sigaev Date: Thu, 18 Jun 2020 11:57:03 +0300 Subject: [PATCH] Add commemt about fallback in switch. Add missed break in switch --- online_analyze.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/online_analyze.c b/online_analyze.c index b53ff83..ac268a0 100644 --- a/online_analyze.c +++ b/online_analyze.c @@ -602,6 +602,7 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected) case CK_INSERT: case CK_UPDATE: rstat->n_tuples += naffected; + /* FALLTHROUGH */ case CK_DELETE: rstat->rereadStat = (reltype == OATT_PERSISTENT); break; @@ -642,6 +643,7 @@ makeAnalyze(Oid relOid, CmdKind operation, int64 naffected) case CK_UPDATE: rstat->changes_since_analyze += 2 * naffected; rstat->n_tuples += naffected; + break; case CK_DELETE: rstat->changes_since_analyze += naffected; break; -- 2.46.1