Fix compilation for removal of link cache
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 29 Jul 2011 09:45:43 +0000 (10:45 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 29 Jul 2011 09:46:27 +0000 (10:46 +0100)
bus/stats.c
dbus/dbus-connection-internal.h
dbus/dbus-connection.c

index 4e7288596981b1a15b421c8136457b8850521942..28fd49ba3b66b2fb90223c13f13e054b7061f450 100644 (file)
@@ -263,7 +263,6 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection,
   static dbus_uint32_t stats_serial = 0;
   dbus_uint32_t in_messages, in_bytes, in_fds, in_peak_bytes, in_peak_fds;
   dbus_uint32_t out_messages, out_bytes, out_fds, out_peak_bytes, out_peak_fds;
-  dbus_uint32_t link_cache_bytes;
   BusRegistry *registry;
   BusService *service;
   DBusConnection *stats_connection;
@@ -316,8 +315,7 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection,
                               &in_messages, &in_bytes, &in_fds,
                               &in_peak_bytes, &in_peak_fds,
                               &out_messages, &out_bytes, &out_fds,
-                              &out_peak_bytes, &out_peak_fds,
-                              &link_cache_bytes);
+                              &out_peak_bytes, &out_peak_fds);
 
   if (!asv_add_uint32 (&iter, &arr_iter, "IncomingMessages", in_messages) ||
       !asv_add_uint32 (&iter, &arr_iter, "IncomingBytes", in_bytes) ||
@@ -328,8 +326,7 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection,
       !asv_add_uint32 (&iter, &arr_iter, "OutgoingBytes", out_bytes) ||
       !asv_add_uint32 (&iter, &arr_iter, "OutgoingFDs", out_fds) ||
       !asv_add_uint32 (&iter, &arr_iter, "PeakOutgoingBytes", out_peak_bytes) ||
-      !asv_add_uint32 (&iter, &arr_iter, "PeakOutgoingFDs", out_peak_fds) ||
-      !asv_add_uint32 (&iter, &arr_iter, "LinkCacheBytes", link_cache_bytes))
+      !asv_add_uint32 (&iter, &arr_iter, "PeakOutgoingFDs", out_peak_fds))
     goto oom;
 
   /* end */
index 23fb914ecd026f0bd90fe0c24cffc815003933c1..4cc27610a1fe6e52b33b7e82c080b44ce6fb54a3 100644 (file)
@@ -114,8 +114,7 @@ void _dbus_connection_get_stats (DBusConnection *connection,
                                  dbus_uint32_t  *out_bytes,
                                  dbus_uint32_t  *out_fds,
                                  dbus_uint32_t  *out_peak_bytes,
-                                 dbus_uint32_t  *out_peak_fds,
-                                 dbus_uint32_t  *link_cache_size);
+                                 dbus_uint32_t  *out_peak_fds);
 
 /* This _dbus_bus_* stuff doesn't really belong here, but dbus-bus-internal.h seems
  * silly for one function
index 400a79df2f03c83417397cc5a638fc40029d7851..cb1da8c1e90b017fca421f86a337dc14e20ccce9 100644 (file)
@@ -6180,8 +6180,7 @@ _dbus_connection_get_stats (DBusConnection *connection,
                             dbus_uint32_t  *out_bytes,
                             dbus_uint32_t  *out_fds,
                             dbus_uint32_t  *out_peak_bytes,
-                            dbus_uint32_t  *out_peak_fds,
-                            dbus_uint32_t  *link_cache_size)
+                            dbus_uint32_t  *out_peak_fds)
 {
   CONNECTION_LOCK (connection);
 
@@ -6206,11 +6205,6 @@ _dbus_connection_get_stats (DBusConnection *connection,
   if (out_peak_fds != NULL)
     *out_peak_fds = _dbus_counter_get_peak_unix_fd_value (connection->outgoing_counter);
 
-  if (link_cache_size != NULL)
-    {
-      *link_cache_size = _dbus_list_get_length (&connection->link_cache) * sizeof (DBusList);
-    }
-
   CONNECTION_UNLOCK (connection);
 }
 #endif /* DBUS_ENABLE_STATS */