提交 b2c9182c 编写于 作者: D Daniel Gustafsson

Remove duplicate assertion segment count

There is already an assertion in getgpsegmentCount() testing the count
to be > 0 (and 0 can only be returned in utility mode which still holds
this assertion always true).
Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
Reviewed-by: NVenkatesh Raghavan <vraghavan@pivotal.io>
上级 7f097b8d
......@@ -75,8 +75,6 @@ makeCdbCopy(bool is_copy_in)
c->total_segs = getgpsegmentCount();
c->aotupcounts = NULL;
Assert(c->total_segs >= 0);
/* Initialize the state of each segment database */
c->segdb_state = (SegDbState **) palloc((c->total_segs) * sizeof(SegDbState *));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册