diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-03-18 06:25:10 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-03-18 06:25:10 +0200 |
commit | c14d9c21f0a6974d9909e00a23522114caad3bfc (patch) | |
tree | 5252a2d8e0664010f73cfc979b1ed50276ed95a2 /storage/xtradb/sync | |
parent | 99a2c061d7bfc181b04a0adc14ce036fab821d85 (diff) | |
download | mariadb-git-c14d9c21f0a6974d9909e00a23522114caad3bfc.tar.gz |
Make sure that sync level vector is emptied.
Diffstat (limited to 'storage/xtradb/sync')
-rw-r--r-- | storage/xtradb/sync/sync0sync.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/xtradb/sync/sync0sync.cc b/storage/xtradb/sync/sync0sync.cc index 7e104202f36..fcc2e01c1f4 100644 --- a/storage/xtradb/sync/sync0sync.cc +++ b/storage/xtradb/sync/sync0sync.cc @@ -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; } |