apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1768388 - in /apr/apr/trunk: include/apr_redis.h redis/apr_redis.c
Date Sun, 06 Nov 2016 20:20:54 GMT
Author: jim
Date: Sun Nov  6 20:20:54 2016
New Revision: 1768388

URL: http://svn.apache.org/viewvc?rev=1768388&view=rev
Log:
Force commit

Modified:
    apr/apr/trunk/include/apr_redis.h
    apr/apr/trunk/redis/apr_redis.c

Modified: apr/apr/trunk/include/apr_redis.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_redis.h?rev=1768388&r1=1768387&r2=1768388&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_redis.h (original)
+++ apr/apr/trunk/include/apr_redis.h Sun Nov  6 20:20:54 2016
@@ -412,14 +412,16 @@ typedef struct
     apr_uint64_t total_connections_received;
     /** Total commands processed */
     apr_uint64_t total_commands_processed;
+    /** Total commands rejected */
+    apr_uint64_t rejected_connections;
     /** Total net input bytes */
     apr_uint64_t total_net_input_bytes;
     /** Total net output bytes */
     apr_uint64_t total_net_output_bytes;
     /** Keyspace hits */
-    apr_uint32_t keyspace_hits;
+    apr_uint64_t keyspace_hits;
     /** Keyspace misses */
-    apr_uint32_t keyspace_misses;
+    apr_uint64_t keyspace_misses;
 
 /* # Replication */
     /** Role */

Modified: apr/apr/trunk/redis/apr_redis.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/redis/apr_redis.c?rev=1768388&r1=1768387&r2=1768388&view=diff
==============================================================================
--- apr/apr/trunk/redis/apr_redis.c (original)
+++ apr/apr/trunk/redis/apr_redis.c Sun Nov  6 20:20:54 2016
@@ -1416,6 +1416,9 @@ apr_redis_multgetp(apr_redis_t *rc,
 #define STAT_total_commands_processed "total_commands_processed:"
 #define STAT_total_commands_processed_LEN (sizeof(STAT_total_commands_processed)-1)
 
+#define STAT_rejected_connections "rejected_connections:"
+#define STAT_rejected_connections_LEN (sizeof(STAT_rejected_connections)-1)
+
 #define STAT_total_net_input_bytes "total_net_input_bytes:"
 #define STAT_total_net_input_bytes_LEN (sizeof(STAT_total_net_input_bytes)-1)
 
@@ -1470,10 +1473,11 @@ static void update_stats(char *info, apr
     rc_do_stat(total_system_memory, uint64);
     rc_do_stat(total_connections_received, uint64);
     rc_do_stat(total_commands_processed, uint64);
+    rc_do_stat(rejected_connections, uint64);
     rc_do_stat(total_net_input_bytes, uint64);
     rc_do_stat(total_net_output_bytes, uint64);
-    rc_do_stat(keyspace_hits, uint32);
-    rc_do_stat(keyspace_misses, uint32);
+    rc_do_stat(keyspace_hits, uint64);
+    rc_do_stat(keyspace_misses, uint64);
     rc_do_stat(connected_slaves, uint32);
     rc_do_stat(used_cpu_sys, uint32);
     rc_do_stat(used_cpu_user, uint32);



Mime
View raw message