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

Function ReportFeatureUsage

pg_documentdb/include/utils/feature_counter.h:503–512  ·  view source on GitHub ↗

* Given a feature id this method increments the feature usage count for the * feature for the current backend process. * * Postgres guarantees that MyBackendId is always between 1 and MaxBackend. */

Source from the content-addressed store, hash-verified

501 * Postgres guarantees that MyBackendId is always between 1 and MaxBackend.
502 */
503static inline void
504ReportFeatureUsage(int featureId)
505{
506 pg_write_barrier();
507#if PG_VERSION_NUM >= 170000
508 FeatureCounterBackendArray[MyProcNumber][featureId]++;
509#else
510 FeatureCounterBackendArray[MyBackendId - 1][featureId]++;
511#endif
512}
513
514
515#endif /* FEATURE_COUNTER_H */

Callers 15

ParseIVFCreationSpecFunction · 0.85
ParseHNSWCreationSpecFunction · 0.85
ParseIVFIndexSearchSpecFunction · 0.85
ParseHNSWIndexSearchSpecFunction · 0.85
command_db_statsFunction · 0.85
command_list_databasesFunction · 0.85
command_validateFunction · 0.85
current_opFunction · 0.85
command_insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected