@@ -5432,7 +5432,7 @@ const char *getSafeInfoString(const char *s, size_t len, char **tmp) {
5432
5432
sizeof (unsafe_info_chars )- 1 );
5433
5433
}
5434
5434
5435
- sds genRedisInfoStringCommandStats (sds info , dict * commands ) {
5435
+ sds genValkeyInfoStringCommandStats (sds info , dict * commands ) {
5436
5436
struct serverCommand * c ;
5437
5437
dictEntry * de ;
5438
5438
dictIterator * di ;
@@ -5450,7 +5450,7 @@ sds genRedisInfoStringCommandStats(sds info, dict *commands) {
5450
5450
if (tmpsafe != NULL ) zfree (tmpsafe );
5451
5451
}
5452
5452
if (c -> subcommands_dict ) {
5453
- info = genRedisInfoStringCommandStats (info , c -> subcommands_dict );
5453
+ info = genValkeyInfoStringCommandStats (info , c -> subcommands_dict );
5454
5454
}
5455
5455
}
5456
5456
dictReleaseIterator (di );
@@ -5459,7 +5459,7 @@ sds genRedisInfoStringCommandStats(sds info, dict *commands) {
5459
5459
}
5460
5460
5461
5461
/* Writes the ACL metrics to the info */
5462
- sds genRedisInfoStringACLStats (sds info ) {
5462
+ sds genValkeyInfoStringACLStats (sds info ) {
5463
5463
info = sdscatprintf (info ,
5464
5464
"acl_access_denied_auth:%lld\r\n"
5465
5465
"acl_access_denied_cmd:%lld\r\n"
@@ -5472,7 +5472,7 @@ sds genRedisInfoStringACLStats(sds info) {
5472
5472
return info ;
5473
5473
}
5474
5474
5475
- sds genRedisInfoStringLatencyStats (sds info , dict * commands ) {
5475
+ sds genValkeyInfoStringLatencyStats (sds info , dict * commands ) {
5476
5476
struct serverCommand * c ;
5477
5477
dictEntry * de ;
5478
5478
dictIterator * di ;
@@ -5487,7 +5487,7 @@ sds genRedisInfoStringLatencyStats(sds info, dict *commands) {
5487
5487
if (tmpsafe != NULL ) zfree (tmpsafe );
5488
5488
}
5489
5489
if (c -> subcommands_dict ) {
5490
- info = genRedisInfoStringLatencyStats (info , c -> subcommands_dict );
5490
+ info = genValkeyInfoStringLatencyStats (info , c -> subcommands_dict );
5491
5491
}
5492
5492
}
5493
5493
dictReleaseIterator (di );
@@ -5513,7 +5513,7 @@ void releaseInfoSectionDict(dict *sec) {
5513
5513
dictRelease (sec );
5514
5514
}
5515
5515
5516
- /* Create a dictionary with unique section names to be used by genRedisInfoString .
5516
+ /* Create a dictionary with unique section names to be used by genValkeyInfoString .
5517
5517
* 'argv' and 'argc' are list of arguments for INFO.
5518
5518
* 'defaults' is an optional null terminated list of default sections.
5519
5519
* 'out_all' and 'out_everything' are optional.
@@ -5577,7 +5577,7 @@ void totalNumberOfStatefulKeys(unsigned long *blocking_keys, unsigned long *bloc
5577
5577
/* Create the string returned by the INFO command. This is decoupled
5578
5578
* by the INFO command itself as we need to report the same information
5579
5579
* on memory corruption problems. */
5580
- sds genRedisInfoString (dict * section_dict , int all_sections , int everything ) {
5580
+ sds genValkeyInfoString (dict * section_dict , int all_sections , int everything ) {
5581
5581
sds info = sdsempty ();
5582
5582
time_t uptime = server .unixtime - server .stat_starttime ;
5583
5583
int j ;
@@ -5942,7 +5942,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
5942
5942
"eventloop_duration_cmd_sum:%llu\r\n" , server .duration_stats [EL_DURATION_TYPE_CMD ].sum ,
5943
5943
"instantaneous_eventloop_cycles_per_sec:%llu\r\n" , getInstantaneousMetric (STATS_METRIC_EL_CYCLE ),
5944
5944
"instantaneous_eventloop_duration_usec:%llu\r\n" , getInstantaneousMetric (STATS_METRIC_EL_DURATION )));
5945
- info = genRedisInfoStringACLStats (info );
5945
+ info = genValkeyInfoStringACLStats (info );
5946
5946
}
5947
5947
5948
5948
/* Replication */
@@ -6092,7 +6092,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
6092
6092
if (all_sections || (dictFind (section_dict ,"commandstats" ) != NULL )) {
6093
6093
if (sections ++ ) info = sdscat (info ,"\r\n" );
6094
6094
info = sdscatprintf (info , "# Commandstats\r\n" );
6095
- info = genRedisInfoStringCommandStats (info , server .commands );
6095
+ info = genValkeyInfoStringCommandStats (info , server .commands );
6096
6096
}
6097
6097
6098
6098
/* Error statistics */
@@ -6119,7 +6119,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
6119
6119
if (sections ++ ) info = sdscat (info ,"\r\n" );
6120
6120
info = sdscatprintf (info , "# Latencystats\r\n" );
6121
6121
if (server .latency_tracking_enabled ) {
6122
- info = genRedisInfoStringLatencyStats (info , server .commands );
6122
+ info = genValkeyInfoStringLatencyStats (info , server .commands );
6123
6123
}
6124
6124
}
6125
6125
@@ -6185,7 +6185,7 @@ void infoCommand(client *c) {
6185
6185
int all_sections = 0 ;
6186
6186
int everything = 0 ;
6187
6187
dict * sections_dict = genInfoSectionDict (c -> argv + 1 , c -> argc - 1 , NULL , & all_sections , & everything );
6188
- sds info = genRedisInfoString (sections_dict , all_sections , everything );
6188
+ sds info = genValkeyInfoString (sections_dict , all_sections , everything );
6189
6189
addReplyVerbatim (c ,info ,sdslen (info ),"txt" );
6190
6190
sdsfree (info );
6191
6191
releaseInfoSectionDict (sections_dict );
0 commit comments