* Command wrapper for CurrentOp. Tracks feature counter usage * and simply calls the common logic. * TODO: Deprecate this once the service doesn't depend on it. */
| 167 | * TODO: Deprecate this once the service doesn't depend on it. |
| 168 | */ |
| 169 | Datum |
| 170 | command_current_op_command(PG_FUNCTION_ARGS) |
| 171 | { |
| 172 | ReportFeatureUsage(FEATURE_COMMAND_CURRENTOP); |
| 173 | |
| 174 | TupleDesc descriptor; |
| 175 | Tuplestorestate *tupleStore = SetupBsonTuplestore(fcinfo, &descriptor); |
| 176 | |
| 177 | CurrentOpAggregateCore(PG_GETARG_PGBSON(0), descriptor, tupleStore); |
| 178 | |
| 179 | PG_RETURN_VOID(); |
| 180 | } |
| 181 | |
| 182 | |
| 183 | Datum |
nothing calls this directly
no test coverage detected