~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/functors.h

  • Committer: Lee Bieber
  • Date: 2010-08-21 22:42:44 UTC
  • mto: (1727.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1728.
  • Revision ID: lbieber@kalebral-2.local-20100821224244-kh3gmsvi45dlbuu1
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size) 
that is requesting the ability to cap various buffers, we first tried setting the join buffer to 
1 to see how that would affect the test results and expose test results that need to 
sorted (by adding --sorted_result). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  }
35
35
};
36
36
 
37
 
class SafeDeletePtr
38
 
{
39
 
public:
40
 
  template<typename T>
41
 
  inline void operator()(const T *ptr) const
42
 
  {
43
 
    if (ptr)
44
 
                        delete ptr;
45
 
  }
46
 
};
47
 
 
48
37
} /* namespace drizzled */
49
38
 
50
39
#endif /* DRIZZLED_UTIL_FUNCTORS_H */