projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
543c14f
)
Add commemt about fallback in switch. Add missed break in switch
author
Teodor Sigaev
<teodor@sigaev.ru>
Thu, 18 Jun 2020 08:57:03 +0000
(11:57 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Thu, 18 Jun 2020 08:57:03 +0000
(11:57 +0300)
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
b53ff83
..
ac268a0
100644
(file)
--- 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;