Closed (fixed)
Project:
MongoDB
Version:
7.x-1.x-dev
Component:
Cache
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2010 at 04:23 UTC
Updated:
23 Mar 2013 at 11:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
bojanz commentedWhich means the fix is not exactly viable in the long term.
Read on mongodb.org:
Comment #2
gordon commentedI wonder if cache should be changed to use MongoBinData instead of plain strings.
The work around that I posted is OK, but really it should just work.
Comment #3
crea commentedSubscribing
Comment #4
dob_ commentedTested under Drupal6
131,132c131,136
< if ($cache->serialized) {
< $cache->data = unserialize($cache->data);
---
> if($cache->binary && $cache->serialized) {
> $cache->data = unserialize($cache->data->bin);
> } else if(!$cache->binary && $cache->serialized){
> $cache->data = unserialize($cache->data);
> } else {
> $cache->data = $cache->data->bin;
134c138
<
---
>
145a150
> 'binary' => true,
147c152
< 'data' => $scalar ? $data : serialize($data),
---
> 'data' => $scalar ? $data : serialize($data),
149c154
<
---
> $entry['data'] = new MongoBinData($entry['data']);
151d155
<
Comment #5
makara commentedThanks dob_.
Here's a patch improves it a bit.
Comment #7
carlos8f commentedPatch looks good, I incorporated it into Cache Tags, ran the benchmarks, and it wasn't noticeably slower. Plus it fixed the crash :) I also think the try/catch wrapping is good because I like rendered pages better than crashed pages.
Comment #8
langworthy commentedThis might be a newbish question but why are the $headers being removed from set()?
Also, why is there a new question mark in comments on its own line?
Comment #9
makara commentedSorry forgot to mention that the
$headerswas in D6 and moved into cache data in D7. For reference, seefunction drupal_page_set_cache()(orfunction page_set_cache()for D6).Comment #10
misc commentedPatch seems good, removed the question mark (comment #8). Patch commited to latest 7.x-1.x.
Comment #11
misc commentedComment #12
misc commentedComment #14
summit commentedHi,
I got this error using latest dev:
Is this patch may be not complete?
Greetings, Martijn
Comment #15
summit commentedMay be something like this on mongodb_field_storage.module:
Just above line 198?
I am not a programmer, but just trying to get rid of this error..
Greetings, Martijn
Comment #16
summit commentedNew title what I think is relevant, I add a new issue if you think this is not related?
Than I am sorry to open this closed issue.
greetings, Martijn
Comment #17
summit commentedHi,
Edit: mongo.utf8 = 0 worked, but this is not possible on a shared host always..
I made a new issue, may be they are related, but I cannot see that: http://drupal.org/node/1944188
Sorry for opening a closed issue earlier.
Greetings, Martijn