* getRootTableInfo: * get the root TableInfo for the given partition table. */
| 2725 | * get the root TableInfo for the given partition table. |
| 2726 | */ |
| 2727 | static TableInfo * |
| 2728 | getRootTableInfo(const TableInfo *tbinfo) |
| 2729 | { |
| 2730 | TableInfo *parentTbinfo; |
| 2731 | |
| 2732 | Assert(tbinfo->ispartition); |
| 2733 | Assert(tbinfo->numParents == 1); |
| 2734 | |
| 2735 | parentTbinfo = tbinfo->parents[0]; |
| 2736 | while (parentTbinfo->ispartition) |
| 2737 | { |
| 2738 | Assert(parentTbinfo->numParents == 1); |
| 2739 | parentTbinfo = parentTbinfo->parents[0]; |
| 2740 | } |
| 2741 | |
| 2742 | return parentTbinfo; |
| 2743 | } |
| 2744 | |
| 2745 | /* |
| 2746 | * forcePartitionRootLoad |
no outgoing calls
no test coverage detected