~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.cc

  • Committer: Brian Aker
  • Date: 2011-02-12 10:06:03 UTC
  • mfrom: (2154.2.16 drizzle-build)
  • Revision ID: brian@tangent.org-20110212100603-i5ww0s02p8l4a8q7
Merge in solaris tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4463
4463
      {
4464
4464
        pattern     = first + 1;
4465
4465
        pattern_len = (int) len - 2;
4466
 
        int *suff = (int*) session->alloc((int) (sizeof(int)*
4467
 
                                      ((pattern_len + 1)*2+
4468
 
                                      alphabet_size)));
 
4466
        int *suff = (int*) session->getMemRoot()->allocate((int) (sizeof(int)*
 
4467
                                                                  ((pattern_len + 1)*2+
 
4468
                                                                   alphabet_size)));
4469
4469
        bmGs      = suff + pattern_len + 1;
4470
4470
        bmBc      = bmGs + pattern_len + 1;
4471
4471
        turboBM_compute_good_suffix_shifts(suff);