chiark / gitweb /
journald: cache cgroup root path, instead of querying it on every incoming log message
[elogind.git] / src / journal / journald-server.h
index 86c4be4ba260a960d281e42d6f40315e7a6f3e23..2a81061f262afb1197db2873a29e1ff288fecc3c 100644 (file)
@@ -136,6 +136,9 @@ typedef struct Server {
         char machine_id_field[sizeof("_MACHINE_ID=") + 32];
         char boot_id_field[sizeof("_BOOT_ID=") + 32];
         char *hostname_field;
+
+        /* Cached cgroup root, so that we don't have to query that all the time */
+        char *cgroup_root;
 } Server;
 
 #define N_IOVEC_META_FIELDS 20