In the shutdown function logging an error if debug was not able to write to the memcache debug log, the watchdog call uses undefined variable $memcache_debug_file.

Considering the logic of that function, it seems the variable should be $memcache_debug_log instead.

Comments

fgm created an issue. See original summary.

fgm’s picture

Status: Active » Needs review
StatusFileSize
new1.34 KB

Suggested patch.

fgm’s picture

Better patch also fixing the incorrect doc comment on that function and another one, and an incorrect parameter in a function calling it.

mile23’s picture

Issue tags: +Needs reroll

Patch does not apply to 7.x-1.x.

mile23’s picture

Status: Needs review » Needs work

OTOH... The error message in the log file is a handy way to count how many cache writes you have per request. :-)

sokru’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new2.02 KB

Reroll with minor coding standard adjustments.

jeremy’s picture

StatusFileSize
new2.04 KB

Additional cleanup of phpdoc wording

jeremy’s picture

StatusFileSize
new2.19 KB

During testing, this needed a little more work -- testing with both PECL memcache and PECL memcached.

jeremy’s picture

StatusFileSize
new1.88 KB

It would help if I uploaded the correct patch -- trying again.

  • Jeremy committed 47050cb on 7.x-1.x authored by fgm
    Issue #3044847 by Jeremy, fgm, sokru: _dmemcache_write_debug uses...
jeremy’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.