Skip to content

Commit

Permalink
Merge pull request #6356 from garlick/kvs_cleanup
Browse files Browse the repository at this point in the history
kvs: fix whitespace issues
  • Loading branch information
mergify[bot] authored Oct 8, 2024
2 parents 4e17867 + b139445 commit 7cf4359
Show file tree
Hide file tree
Showing 14 changed files with 574 additions and 270 deletions.
10 changes: 6 additions & 4 deletions src/modules/kvs/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ int cache_expire_entries (struct cache *cache, double thresh)
if (!cache_entry_get_dirty (entry)
&& cache_entry_get_valid (entry)
&& !entry->refcount
&& (thresh == 0.
|| cache_entry_age (entry, cache) > thresh)) {
&& (thresh == 0. || cache_entry_age (entry, cache) > thresh)) {
list_del (&entry->entries_node);
zhashx_delete (cache->zhx, entry->blobref);
count++;
Expand All @@ -435,8 +434,11 @@ int cache_expire_entries (struct cache *cache, double thresh)
return count;
}

int cache_get_stats (struct cache *cache, tstat_t *ts, int *sizep,
int *incompletep, int *dirtyp)
int cache_get_stats (struct cache *cache,
tstat_t *ts,
int *sizep,
int *incompletep,
int *dirtyp)
{
struct cache_entry *entry;
const char *key;
Expand Down
Loading

0 comments on commit 7cf4359

Please sign in to comment.