all_jobs_used is negetive, so rehash again and again.
patch:
--- job.c 2009-01-13 15:30:51.000000000 +0800
+++ job1.c 2009-01-13 15:30:45.000000000 +0800
@@ -151,17 +151,18 @@
if (jh == j) {
/* Special case the first */
all_jobs[index] = jh->ht_next;
+ all_jobs_used--;
} else {
job tmp;
while (jh->ht_next && jh->ht_next != j) jh = jh->ht_next;
if (jh->ht_next) {
tmp = jh->ht_next;
jh->ht_next = jh->ht_next->ht_next;
+ all_jobs_used--;
}
}
}
- all_jobs_used--;
}
On Jan 13, 2:26 pm, Davies <[email protected]> wrote:
> Hi,
>
> After every list-tubes command, the memory used by beanstalkd became
> larger and larger,
> after sereral list-tubes commands, it is HUGE, such as 24G.
>
> my version: beanstalkd-1.1, under Gentoo Linux.
>
> Davies
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---