Skip to content

Commit

Permalink
Make sure that sync level vector is emptied.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lindström committed Mar 18, 2015
1 parent 99a2c06 commit c14d9c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/sync/sync0sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,7 @@ sync_thread_level_arrays_free(void)

/* If this slot was allocated then free the slot memory too. */
if (slot->levels != NULL) {
slot->levels->elems.erase(slot->levels->elems.begin(),slot->levels->elems.end());
free(slot->levels);
slot->levels = NULL;
}
Expand Down
1 change: 1 addition & 0 deletions storage/xtradb/sync/sync0sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,7 @@ sync_thread_level_arrays_free(void)

/* If this slot was allocated then free the slot memory too. */
if (slot->levels != NULL) {
slot->levels->elems.erase(slot->levels->elems.begin(),slot->levels->elems.end());
free(slot->levels);
slot->levels = NULL;
}
Expand Down

0 comments on commit c14d9c2

Please sign in to comment.