Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 0 additions & 5 deletions iocore/cache/Cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2889,7 +2889,6 @@ cplist_reconfigure()
}

int64_t size_to_alloc = size_in_blocks - cp->size;
int disk_full = 0;
for (int i = 0; (i < gndisks) && size_to_alloc; i++) {
int disk_no = sorted_vols[i];
ink_assert(cp->disk_vols[sorted_vols[gndisks - 1]]);
Expand Down Expand Up @@ -2922,10 +2921,6 @@ cplist_reconfigure()
}
} while ((size_diff > 0));

if (!dpb) {
disk_full++;
}

size_to_alloc = size_in_blocks - cp->size;
}

Expand Down
5 changes: 0 additions & 5 deletions iocore/cache/Store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ Result
Store::read_config()
{
int n_dsstore = 0;
int ln = 0;
int i = 0;
const char *err = nullptr;
Span *sd = nullptr, *cur = nullptr;
Expand All @@ -326,10 +325,6 @@ Store::read_config()
while ((len = ink_file_fd_readline(fd, sizeof(line), line)) > 0) {
const char *path;
const char *seed = nullptr;
// update lines

++ln;

// Because the SimpleTokenizer is a bit too simple, we have to normalize whitespace.
for (char *spot = line, *limit = line + len; spot < limit; ++spot) {
if (ParseRules::is_space(*spot)) {
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/remap/RemapConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ is_inkeylist(const char *key, ...)
va_start(ap, key);

const char *str = va_arg(ap, const char *);
for (unsigned idx = 1; str; idx++) {
while (str) {
if (!strcasecmp(key, str)) {
va_end(ap);
return true;
Expand Down
3 changes: 0 additions & 3 deletions proxy/logging/LogObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,6 @@ LogObjectManager::open_local_pipes()
void
LogObjectManager::transfer_objects(LogObjectManager &old_mgr)
{
unsigned num_kept_objects = 0;

Debug("log-config-transfer", "transferring objects from LogObjectManager %p, to %p", &old_mgr, this);

if (is_debug_tag_set("log-config-transfer")) {
Expand Down Expand Up @@ -1172,7 +1170,6 @@ LogObjectManager::transfer_objects(LogObjectManager &old_mgr)
if (new_obj->refcount_dec() == 0) {
delete new_obj;
}
++num_kept_objects;
break;
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/traffic_cache_tool/CacheDefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,8 @@ Stripe::walk_bucket_chain(int s)
CacheDirEntry *p = nullptr;
auto *dir_b = dir_bucket(b, seg);
CacheDirEntry *e = dir_b;
int len = 0;

while (e) {
len++;
int i = dir_to_offset(e, seg);
if (b_bitset.test(i)) {
std::cout << "bit already set in "
Expand Down
4 changes: 0 additions & 4 deletions tests/gold_tests/tls/ssl-post.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ spawn_same_session_send(void *arg)

SSL_set_fd(ssl, sfd);
int ret = SSL_connect(ssl);
int read_count = 0;
int write_count = 1;
int write_ret = -1;
int post_write_ret = -1;

Expand All @@ -120,12 +118,10 @@ spawn_same_session_send(void *arg)
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_ACCEPT:
FD_SET(sfd, &reads);
read_count++;
break;
case SSL_ERROR_WANT_CONNECT:
case SSL_ERROR_WANT_WRITE:
FD_SET(sfd, &writes);
write_count++;
break;
case SSL_ERROR_SYSCALL:
case SSL_ERROR_SSL:
Expand Down