@cryptotaxi247 / netdata-1 / commits / e28a66f4a

Proper precedence when calculating time_to_evict (#18444)

Stelios Fragkakis committed Aug 30, 2024 at 06:40 UTC e28a66f4a504b5e6ec33fc9f435173d2cba3b3c9
1 file changed +1 -1
src/database/engine/datafile.c
+1 -1
@@ -108,7 +108,7 @@ bool datafile_acquire_for_deletion(struct rrdengine_datafile *df, bool is_shutdo
108
109 if(!df->users.time_to_evict) {
110 // first time we did the above
111 - df->users.time_to_evict = now_s + is_shutdown ? DATAFILE_DELETE_TIMEOUT_SHORT : DATAFILE_DELETE_TIMEOUT_LONG;
111 + df->users.time_to_evict = now_s + (is_shutdown ? DATAFILE_DELETE_TIMEOUT_SHORT : DATAFILE_DELETE_TIMEOUT_LONG);
112 internal_error(true, "DBENGINE: datafile %u of tier %d is not used by any open cache pages, "
113 "but it has %u lockers (oc:%u, pd:%u), "
114 "%zu clean and %zu hot open cache pages "