~percona-dev/percona-server/release-5.1.52-11-fix-oleg-bug-for-11.6

« back to all changes in this revision

Viewing changes to query_cache_enhance.patch

  • Committer: Oleg Tsarev
  • Date: 2010-11-15 03:54:44 UTC
  • mfrom: (135.1.1 bug673929)
  • Revision ID: oleg.tsarev@percona.com-20101115035444-2kaymvhs0g8pcapt
fix bug 673929

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        - Called from various places to invalidate query cache based on data-
243
243
          base, table and myisam file name. During an on going invalidation
244
244
          the query cache is temporarily disabled.
245
 
@@ -333,6 +334,180 @@
 
245
@@ -333,6 +334,181 @@
246
246
 #include <hash.h>
247
247
 #include "../storage/myisammrg/ha_myisammrg.h"
248
248
 #include "../storage/myisammrg/myrg_def.h"
270
270
+  {
271
271
+    cleanup();
272
272
+    buffer = (char*)my_malloc(new_buffer_length,MYF(0));
 
273
+    memset(buffer,0,new_buffer_length);
273
274
+  }
274
275
+  uint query_position = 0;
275
276
+  uint position = 0;