* Record a single TTL metric entry after a batch delete. * If no hook is set, this is a no-op. */
| 671 | * If no hook is set, this is a no-op. |
| 672 | */ |
| 673 | void |
| 674 | RecordTtlMetric(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 | /* |
no outgoing calls
no test coverage detected