Skip to content

Commit

Permalink
Proper precedence when calculating time_to_evict (netdata#18444)
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag authored Aug 30, 2024
1 parent 004ba19 commit e28a66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/engine/datafile.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ bool datafile_acquire_for_deletion(struct rrdengine_datafile *df, bool is_shutdo

if(!df->users.time_to_evict) {
// first time we did the above
df->users.time_to_evict = now_s + is_shutdown ? DATAFILE_DELETE_TIMEOUT_SHORT : DATAFILE_DELETE_TIMEOUT_LONG;
df->users.time_to_evict = now_s + (is_shutdown ? DATAFILE_DELETE_TIMEOUT_SHORT : DATAFILE_DELETE_TIMEOUT_LONG);
internal_error(true, "DBENGINE: datafile %u of tier %d is not used by any open cache pages, "
"but it has %u lockers (oc:%u, pd:%u), "
"%zu clean and %zu hot open cache pages "
Expand Down

0 comments on commit e28a66f

Please sign in to comment.