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

Function RecordTtlMetric

pg_documentdb/src/api_hooks.c:673–689  ·  view source on GitHub ↗

* Record a single TTL metric entry after a batch delete. * If no hook is set, this is a no-op. */

Source from the content-addressed store, hash-verified

671 * If no hook is set, this is a no-op.
672 */
673void
674RecordTtlMetric(void *metricsContext,
675 uint64 collectionId,
676 uint64 indexId,
677 uint64 shardId,
678 const char *indexName,
679 double saturationRatio,
680 double batchDeleteElapsedTimeMs,
681 uint64 rowsDeleted)
682{
683 if (record_ttl_metric_hook != NULL && metricsContext != NULL)
684 {
685 record_ttl_metric_hook(metricsContext, collectionId, indexId, shardId,
686 indexName, saturationRatio,
687 batchDeleteElapsedTimeMs, rowsDeleted);
688 }
689}
690
691
692/*

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected