Skip to content

Commit 1d7fde6

Browse files
author
Venkatesh Prasad
committed
PS-9647: MySQL Perf Improvements
https://perconadev.atlassian.net/browse/PS-9647 *** Resolved conflicts
1 parent 821f443 commit 1d7fde6

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

include/mem_root_deque.h

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -47,47 +47,8 @@ class mem_root_deque {
4747
using const_reverse_iterator = typename std::list<T, Mem_root_allocator<T>>::const_reverse_iterator;
4848

4949

50-
<<<<<<< HEAD
5150
explicit mem_root_deque(MEM_ROOT *mem_root)
5251
: list_(Mem_root_allocator<T>(mem_root)), size_(0) {}
53-
||||||| 2df90d528b6
54-
// Move constructor and assignment.
55-
mem_root_deque(mem_root_deque &&other)
56-
: m_blocks(other.m_blocks),
57-
m_begin_idx(other.m_begin_idx),
58-
m_end_idx(other.m_end_idx),
59-
m_root(other.m_root) {
60-
other.m_blocks = nullptr;
61-
other.m_begin_idx = other.m_end_idx = other.m_capacity = 0;
62-
other.invalidate_iterators();
63-
}
64-
mem_root_deque &operator=(mem_root_deque &&other) {
65-
if (this != &other) {
66-
this->~mem_root_deque();
67-
new (this) mem_root_deque(std::move(other));
68-
}
69-
return *this;
70-
}
71-
=======
72-
// Move constructor and assignment.
73-
mem_root_deque(mem_root_deque &&other)
74-
: m_blocks(other.m_blocks),
75-
m_begin_idx(other.m_begin_idx),
76-
m_end_idx(other.m_end_idx),
77-
m_capacity(other.m_capacity),
78-
m_root(other.m_root) {
79-
other.m_blocks = nullptr;
80-
other.m_begin_idx = other.m_end_idx = other.m_capacity = 0;
81-
other.invalidate_iterators();
82-
}
83-
mem_root_deque &operator=(mem_root_deque &&other) {
84-
if (this != &other) {
85-
this->~mem_root_deque();
86-
new (this) mem_root_deque(std::move(other));
87-
}
88-
return *this;
89-
}
90-
>>>>>>> percona/8.0
9152

9253
mem_root_deque(typename std::list<T, Mem_root_allocator<T>>::size_type count, const T &value, MEM_ROOT *mem_root)
9354
: list_(count, value, Mem_root_allocator<T>(mem_root)), size_(count) {}

0 commit comments

Comments
 (0)