~drizzle-trunk/drizzle/development

Viewing all changes in revision 1491.2.3.

  • Committer: Jay Pipes
  • Date: 2010-04-22 19:14:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1505.
  • Revision ID: jpipes@serialcoder-20100422191422-2ye91jo7i1a2bdvx
Fix for Bug #542299.  The cause of the segfault was no pre-allocation of the target vector in set_difference().  Depending on STL implementations, set_difference() calls the STL's copy(), which requires pre-allocation of all targets and destinations.  This meant the default constructor for set_difference_contexts was not adequate, and we should call vector<>::reserve() to allocate enough memory for pointers to the target elements.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: