diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-11 23:31:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-11 23:31:07 +0100 |
commit | e9174f29c7e3ee45137537b126458718913a3ec5 (patch) | |
tree | dd8b7afb775a0121031607b2e5b2358b8c0fbece /src/journal/journald-server.h | |
parent | journal: when listing logs of a container make sure we don't accidentally sho... (diff) | |
download | systemd-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.h | 3 |
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 |