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

@ -66,7 +66,7 @@ static void MultiTenantMonitorSMInit(void);
static TenantStats * CreateTenantStats(MultiTenantMonitor *monitor, TimestampTz
queryTime);
static void FillTenantStatsHashKey(TenantStatsHashKey *key, char *tenantAttribute, uint32
colocationGroupId);
colocationGroupId);
static TenantStats * FindTenantStats(MultiTenantMonitor *monitor);
static size_t MultiTenantMonitorshmemSize(void);
static char * ExtractTopComment(const char *inputString);
@ -744,7 +744,8 @@ FindTenantStats(MultiTenantMonitor *monitor)
static void
FillTenantStatsHashKey(TenantStatsHashKey *key, char *tenantAttribute, uint32 colocationGroupId)
FillTenantStatsHashKey(TenantStatsHashKey *key, char *tenantAttribute, uint32
colocationGroupId)
{
memset(key->tenantAttribute, 0, MAX_TENANT_ATTRIBUTE_LENGTH);
strlcpy(key->tenantAttribute, tenantAttribute, MAX_TENANT_ATTRIBUTE_LENGTH);