[Devel] [ openser-Bugs-1721048 ] pres. module attempts to read (almost) entire watchers table

SourceForge.net noreply at sourceforge.net
Fri May 18 10:40:36 CEST 2007


Bugs item #1721048, was opened at 2007-05-17 23:34
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1721048&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Kobi Eshun (ekobi)
>Assigned to: anca (anca_vamanu)
Summary: pres. module attempts to read (almost) entire watchers table

Initial Comment:
Hi,

The 'msg_watchers_clean()' function queries the 'watchers' table for subscriptions older than 24 hours that are still pending and then, if there are any, deletes them. Two issues:

1 - why bother with the first query at all -- why not just the issue the delete and let the back-end database deal with a possible empty set?

2 - the pa_dbf.query() for this omits the second clause in the query, so that *all* subscriptions older than 24 hours are retrieved. This table gets huge, and so after a while, this function fails to allocate enough memory to complete the query.

The attached trivial patch fixes the problem.
--
kobi



----------------------------------------------------------------------

>Comment By: anca (anca_vamanu)
Date: 2007-05-18 08:40

Message:
Logged In: YES 
user_id=1614776
Originator: NO

Hello,

That had been fixed in trunk, I forgot to port it to 1.2.x. 
Thanks for reporting. 
It is necessary to check first with a query if expired messages exit as
there have been reported problems when using db text.
I have changed retriving all the columns with retriving only one and this
fixes the memory problem.

regards, 

Anca Vamanu

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1721048&group_id=139143



More information about the Devel mailing list