pull/6868/head
Gokhan Gulbiz 2023-05-10 13:37:29 +03:00
parent 5027321af0
commit 7575f362be
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 3 additions and 2 deletions

View File

@ -744,7 +744,8 @@ FindTenantStats(MultiTenantMonitor *monitor)
static void static void
FillTenantStatsHashKey(TenantStatsHashKey *key, char *tenantAttribute, uint32 colocationGroupId) FillTenantStatsHashKey(TenantStatsHashKey *key, char *tenantAttribute, uint32
colocationGroupId)
{ {
memset(key->tenantAttribute, 0, MAX_TENANT_ATTRIBUTE_LENGTH); memset(key->tenantAttribute, 0, MAX_TENANT_ATTRIBUTE_LENGTH);
strlcpy(key->tenantAttribute, tenantAttribute, MAX_TENANT_ATTRIBUTE_LENGTH); strlcpy(key->tenantAttribute, tenantAttribute, MAX_TENANT_ATTRIBUTE_LENGTH);