Am Mittwoch, 27. März 2013, 15:15:58 schrieb Richard Fuchs:
I'm
currently debugging a segfault in the presence module, which is
caused by it recursively calling srdb1 functions on the same db handle,
which at least under db_mysql doesn't work and causes segfault. I was
wondering what the preferred fix would be: Fix presence module so it
doesn't do that, or fix db_mysql so that recursive queries are possible.
Personally I'd prefer the second option, but AFAICS it would require
some changes to srdb1 itself. Any other options I'm not seeing?
cheers
Any comments on this? Or should I just go ahead and fix up srdb1 and
db_mysql?
Hello Richard,
I'd suggest as well to fix it in the core DB layer instead of the module. The
only reason to fix it in the module instead would be if the core fix is really
expensive in terms of CPU and/or memory usage.
Best regards,
Henning Westerholt