~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cost_vect.h

  • Committer: Jay Pipes
  • Date: 2009-11-19 18:58:35 UTC
  • mto: (1223.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: jpipes@serialcoder-20091119185835-o59wyfjiet3keutu
Fixes some valgrind warnings regarding conditionals depending on unintialized variables.  Use initializer lists properly, dang it. :) Also, removed the new_Cached_item() function's use_result_field, as this was only used for views and was producing a valgrind warning unnecessarily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  static const uint32_t MEM_COEFF=1;
37
37
  static const uint32_t IMPORT_COEFF=1;
38
38
 
39
 
  COST_VECT() {}                              // keep gcc happy
 
39
  COST_VECT() :
 
40
    io_count(0.0),
 
41
    avg_io_cost(1.0),
 
42
    cpu_cost(0.0),
 
43
    mem_cost(0.0),
 
44
    import_cost(0.0)
 
45
  {}
40
46
 
41
47
  double total_cost()
42
48
  {