Add commemt about fallback in switch. Add missed break in switch
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 18 Jun 2020 08:57:03 +0000 (11:57 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 18 Jun 2020 08:57:03 +0000 (11:57 +0300)
online_analyze.c

index b53ff83..ac268a0 100644 (file)
@@ -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;