Little bug found in poller cache

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
NC
Posts: 7
Joined: Tue Feb 24, 2004 2:15 pm
Location: FRANCE

Little bug found in poller cache

Post by NC »

The "Clear Poller Cache" function doesn't clean correctly the
"data_input_data_fcache" table.

I've found only these lines in lib/utility.php :

Code: Select all

db_execute("delete from data_input_data_fcache where local_data_id=$local_data_id");
But, when a data source is destroyed,
the "data_input_data_fcache" table is never cleaned.

To find rows unused in `data_input_data_fcache` table :

Code: Select all

SELECT `data_input_data_fcache`.`local_data_id`
FROM data_input_data_fcache
LEFT JOIN data_input_data_cache ON `data_input_data_fcache`.`local_data_id` = `data_input_data_cache`.`local_data_id`
WHERE (
`data_input_data_cache`.`local_data_id` IS NULL
) 
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Good catch. I fixed the orphans in both data_sources.php and lib/utility.php.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests