Skip to content

Commit

Permalink
removed MAX_TL_CONFIG_SIZE from vkext-schema-memcache (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
troy4eg authored Oct 2, 2023
1 parent 5e4a947 commit 9c53778
Showing 1 changed file with 0 additions and 10 deletions.
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

0 comments on commit 9c53778

Please sign in to comment.