summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-09 09:09:59 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-09 09:31:26 -0500
commitb914ea8d379b446c4c9fac4ba181771676ef38cd (patch)
tree295e4932347495c8739618529bc4ee2e8a720e4a /src/journal
parent86d81e502bf7f923e4bb9c30de85f04e3497c839 (diff)
journal: do not check for number of files
Now that we bump rlimit, we do not really know how many files we can open. Remove the check. https://bugzilla.redhat.com/show_bug.cgi?id=1179980
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/sd-journal.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 2ce9262a20..0268675abb 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -43,8 +43,6 @@
#include "replace-var.h"
#include "fileio.h"
-#define JOURNAL_FILES_MAX 1024
-
#define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
#define REPLACE_VAR_MAX 256
@@ -1198,11 +1196,6 @@ static int add_any_file(sd_journal *j, const char *path) {
if (ordered_hashmap_get(j->files, path))
return 0;
- if (ordered_hashmap_size(j->files) >= JOURNAL_FILES_MAX) {
- log_warning("Too many open journal files, not adding %s.", path);
- return set_put_error(j, -ETOOMANYREFS);
- }
-
r = journal_file_open(path, O_RDONLY, 0, false, false, NULL, j->mmap, NULL, &f);
if (r < 0)
return r;