* The implementation of indexStats on the query coordinator. */
| 99 | * The implementation of indexStats on the query coordinator. |
| 100 | */ |
| 101 | static void |
| 102 | IndexStatsCoordinator(Datum databaseName, Datum collectionName, |
| 103 | MongoCollection *collection, Tuplestorestate *tupleStore, |
| 104 | TupleDesc tupleDescriptor) |
| 105 | { |
| 106 | List *workerBsons = NIL; |
| 107 | int numValues = 2; |
| 108 | Datum values[2] = { databaseName, collectionName }; |
| 109 | Oid types[2] = { TEXTOID, TEXTOID }; |
| 110 | workerBsons = RunQueryOnAllServerNodes("IndexStats", values, types, numValues, |
| 111 | command_index_stats_worker, |
| 112 | ApiInternalSchemaName, "index_stats_worker"); |
| 113 | |
| 114 | /* Now that we have the worker BSON results, merge them to the final one */ |
| 115 | MergeWorkerResults(collection, workerBsons, tupleStore, tupleDescriptor); |
| 116 | } |
| 117 | |
| 118 | |
| 119 | /* |
no test coverage detected