Skip to content
  • Martin Hansson's avatar
    c39129a4
    Bug#27482976: CONSISTENTLY CONSTRUCT TABLE_LIST OBJECTS · c39129a4
    Martin Hansson authored
    TABLE_LIST objects are frequently default-constructed, only
    to be initalized again with TABLE_LIST::init_one_table().
    
    This fix removes TABLE_LIST::init_one_table() and replaces
    the calls to the default constructor with the constructor
    taking the same arguments as init_one_table() took. In very
    few cases (i.e. authentication code) where the construction
    of the TABLE_LIST objects and the initalizations are far
    away, init_one_table() is replaced with assignment.
    
    Change-Id: Iffcd2bc088626d6df02feb6ef87bfa517c6f7407
    c39129a4
    Bug#27482976: CONSISTENTLY CONSTRUCT TABLE_LIST OBJECTS
    Martin Hansson authored
    TABLE_LIST objects are frequently default-constructed, only
    to be initalized again with TABLE_LIST::init_one_table().
    
    This fix removes TABLE_LIST::init_one_table() and replaces
    the calls to the default constructor with the constructor
    taking the same arguments as init_one_table() took. In very
    few cases (i.e. authentication code) where the construction
    of the TABLE_LIST objects and the initalizations are far
    away, init_one_table() is replaced with assignment.
    
    Change-Id: Iffcd2bc088626d6df02feb6ef87bfa517c6f7407
Loading