summaryrefslogtreecommitdiffstats
path: root/src/journal/journald-server.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-11 23:31:07 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-11 23:31:07 +0100
commite9174f29c7e3ee45137537b126458718913a3ec5 (patch)
treedd8b7afb775a0121031607b2e5b2358b8c0fbece /src/journal/journald-server.h
parentjournal: when listing logs of a container make sure we don't accidentally sho... (diff)
downloadsystemd-e9174f29c7e3ee45137537b126458718913a3ec5.tar.xz
systemd-e9174f29c7e3ee45137537b126458718913a3ec5.zip
journald: cache cgroup root path, instead of querying it on every incoming log message
Diffstat (limited to 'src/journal/journald-server.h')
-rw-r--r--src/journal/journald-server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
index 86c4be4ba2..2a81061f26 100644
--- a/src/journal/journald-server.h
+++ b/src/journal/journald-server.h
@@ -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