Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed MAX_TL_CONFIG_SIZE from vkext-schema-memcache #909

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions vkext/vkext-schema-memcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5198,9 +5198,6 @@ int renew_tl_config(const char *name) {
return 1;
}

#define MAX_TL_CONFIG_SIZE (1 << 20)


static int read_tl_config_open(const char *name, struct stat *stat) {
int fd = open(name, O_RDONLY);

Expand All @@ -5225,13 +5222,6 @@ static int read_tl_config_open(const char *name, struct stat *stat) {
return -1;
}

if (stat->st_size > MAX_TL_CONFIG_SIZE) {
fprintf(stderr, "Too big .tlo file '%s' (more than %lld)\n", name, (long long)MAX_TL_CONFIG_SIZE);

close(fd);
return -1;
}

return fd;
}

Expand Down