MCPcopy Create free account
hub / github.com/documentdb/documentdb / command_current_op_command

Function command_current_op_command

pg_documentdb/src/commands/current_op.c:169–180  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

167 * TODO: Deprecate this once the service doesn't depend on it.
168 */
169Datum
170command_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
183Datum

Callers

nothing calls this directly

Calls 3

ReportFeatureUsageFunction · 0.85
SetupBsonTuplestoreFunction · 0.85
CurrentOpAggregateCoreFunction · 0.85

Tested by

no test coverage detected