From: Teodor Sigaev Date: Thu, 18 Jun 2020 08:57:03 +0000 (+0300) Subject: Add commemt about fallback in switch. Add missed break in switch X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=d79489dc6f2cded724546c7df2181ec8a290fb8a;p=online_analyze.git Add commemt about fallback in switch. Add missed break in switch --- 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;