Skip to content

Commit 9077a16

Browse files
committed
Resolve merge conflicts: keep feat/embedded-mode (HEAD) content
- Clean leftover conflict markers in deps/oblib, src/, mittest, rpm, tools, unittest - Preserve current branch changes for libseekdb embedded mode
1 parent 62d3ef8 commit 9077a16

33 files changed

Lines changed: 18772 additions & 93921 deletions

deps/oblib/src/lib/cpu/ob_cpu_topology.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ int CpuFlagSet::init_from_os(uint64_t& flags)
116116
#elif defined(__APPLE__)
117117
// On macOS, /proc/cpuinfo doesn't exist.
118118
// We can use sysctl to check for features, but for now we rely on init_from_cpu
119-
<<<<<<< HEAD
120119
// and just return success here with flags set to a reasonable default or
121-
=======
122-
// and just return success here with flags set to a reasonable default or
123-
>>>>>>> master
124120
// matched with cpu flags to avoid mismatch error in constructor.
125121
init_from_cpu(flags);
126122
#else

deps/oblib/src/lib/lock/cond.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ Cond::timed_wait_impl(const M& mutex, const ObSysTime& timeout) const
114114
LockState state;
115115
mutex.unlock(state);
116116

117-
<<<<<<< HEAD
118117
#ifdef __APPLE__
119118
// On macOS, pthread_cond_timedwait uses CLOCK_REALTIME
120119
// We need to use Realtime clock for the absolute timeout
@@ -129,8 +128,6 @@ Cond::timed_wait_impl(const M& mutex, const ObSysTime& timeout) const
129128
timespec ts;
130129
ts.tv_sec = tv.tv_sec + timeout/1000;
131130
ts.tv_nsec = tv.tv_usec * 1000 + ( timeout % 1000 ) * 1000000;*/
132-
=======
133-
>>>>>>> master
134131
oceanbase::common::ObWaitEventGuard
135132
wait_guard(oceanbase::common::ObWaitEventIds::DEFAULT_COND_WAIT, timeout.toMicroSeconds(), reinterpret_cast<uint64_t>(this));
136133

deps/oblib/src/lib/lock/ob_futex.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,12 @@ int futex_wait(volatile int *p, int val, const timespec *timeout)
6868
} else {
6969
timeout_us = 0; // infinite wait
7070
}
71-
<<<<<<< HEAD
7271

73-
=======
74-
75-
>>>>>>> master
7672
// Check if value has changed before waiting
7773
if (*p != val) {
7874
return EAGAIN;
7975
}
80-
<<<<<<< HEAD
8176

82-
=======
83-
84-
>>>>>>> master
8577
int ret = __ulock_wait(UL_COMPARE_AND_WAIT, (void*)p, (uint64_t)val, timeout_us);
8678
if (ret < 0) {
8779
if (errno == ETIMEDOUT) {

deps/oblib/src/lib/lock/ob_thread_cond.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,15 @@ int ObThreadCond::wait_us(const uint64_t time_us)
9090
}
9191
} else {
9292
#ifdef __APPLE__
93-
<<<<<<< HEAD
9493
// On macOS, pthread_cond_timedwait uses gettimeofday internally and can have
95-
=======
96-
// On macOS, pthread_cond_timedwait uses gettimeofday internally and can have
97-
>>>>>>> master
9894
// high overhead. Use pthread_cond_timedwait_relative_np instead, which:
9995
// 1. Takes a relative timeout (no need for gettimeofday to compute absolute time)
10096
// 2. Uses efficient internal implementation without polling
10197
// 3. Provides immediate signal response (no polling latency)
10298
struct timespec reltime;
10399
reltime.tv_sec = static_cast<time_t>(time_us / 1000000);
104100
reltime.tv_nsec = static_cast<long>((time_us % 1000000) * 1000);
105-
<<<<<<< HEAD
106101

107-
=======
108-
109-
>>>>>>> master
110102
tmp_ret = pthread_cond_timedwait_relative_np(&cond_, &mutex_, &reltime);
111103
if (tmp_ret != 0) {
112104
if (ETIMEDOUT != tmp_ret) {

deps/oblib/src/lib/thread/thread.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,14 @@ int Thread::start()
101101
// Continue even if QoS setting failed
102102
}
103103
#ifdef __APPLE__
104-
<<<<<<< HEAD
105104
// On macOS, pthread_attr_setstack often fails with EINVAL if address/size
106-
=======
107-
// On macOS, pthread_attr_setstack often fails with EINVAL if address/size
108-
>>>>>>> master
109105
// are not perfectly aligned or if the memory is already managed in a way
110106
// that pthread doesn't like. Use setstacksize instead and let the system
111107
// allocate the stack, while keeping our stack_addr_ for stack_header logic.
112108
pret = pthread_attr_setstacksize(&attr, stack_size_);
113109
if (pret != 0) {
114110
// Fallback to default if setstacksize fails
115-
<<<<<<< HEAD
116111
pret = 0;
117-
=======
118-
pret = 0;
119-
>>>>>>> master
120112
} else {
121113
size_t actual_stack_size = 0;
122114
pthread_attr_getstacksize(&attr, &actual_stack_size);

deps/oblib/src/lib/utility/ob_sort.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,13 @@ class IteratorWrapper
5353
return *iter_;
5454
}
5555
inline pointer operator->()
56-
<<<<<<< HEAD
5756
{
5857
return &(*iter_);
5958
}
6059
inline pointer operator->() const
6160
{
6261
return &(*iter_);
6362
}
64-
=======
65-
{
66-
return &(*iter_);
67-
}
68-
inline pointer operator->() const
69-
{
70-
return &(*iter_);
71-
}
72-
>>>>>>> master
7363
inline reference operator[](difference_type n)
7464
{
7565
return iter_[n];
@@ -117,21 +107,6 @@ class IteratorWrapper
117107
return *this;
118108
}
119109
inline IteratorWrapper &operator-=(int64_t off)
120-
<<<<<<< HEAD
121-
{
122-
if (OB_UNLIKELY(index_ < 0)) abort_maybe_bad_compare();
123-
iter_ -= off;
124-
index_ -= off;
125-
return *this;
126-
}
127-
inline IteratorWrapper operator-(int64_t off) const
128-
{
129-
if (OB_UNLIKELY(index_ < 0)) abort_maybe_bad_compare();
130-
Iterator new_iter = iter_;
131-
new_iter -= off;
132-
return IteratorWrapper(new_iter, index_ - off, end_);
133-
}
134-
=======
135110
{
136111
if (OB_UNLIKELY(index_ < 0)) abort_maybe_bad_compare();
137112
iter_ -= off;
@@ -145,7 +120,6 @@ class IteratorWrapper
145120
new_iter -= off;
146121
return IteratorWrapper(new_iter, index_ - off, end_);
147122
}
148-
>>>>>>> master
149123
inline difference_type operator-(const IteratorWrapper &rhs) const
150124
{
151125
return index_ - rhs.index_;

deps/oblib/src/lib/utility/utility.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
#ifdef __linux__
2222
#include <gnu/libc-version.h>
2323
#endif
24-
<<<<<<< HEAD
25-
=======
26-
#ifdef __APPLE__
27-
#include <sys/sysctl.h>
28-
#endif
29-
>>>>>>> master
3024
#include "lib/utility/ob_platform_utils.h" // Platform compatibility layer
3125
#include "lib/file/file_directory_utils.h"
3226
#include "deps/oblib/src/common/ob_string_buf.h"
@@ -1199,7 +1193,6 @@ static int use_daemon()
11991193
if (OB_SUCC(ret)) {
12001194
// 1. Remove background state from current thread using PRIO_DARWIN_THREAD
12011195
int darwin_thread_ret = setpriority(PRIO_DARWIN_THREAD, 0, 0);
1202-
<<<<<<< HEAD
12031196

12041197
// 2. Remove background state from process using PRIO_DARWIN_PROCESS
12051198
int darwin_proc_ret = setpriority(PRIO_DARWIN_PROCESS, 0, 0);
@@ -1211,19 +1204,6 @@ static int use_daemon()
12111204
int prio_ret = setpriority(PRIO_PROCESS, 0, 0);
12121205

12131206
_LOG_INFO("macOS daemon priority setup: darwin_thread=%d, darwin_proc=%d, qos=%d, prio=%d",
1214-
=======
1215-
1216-
// 2. Remove background state from process using PRIO_DARWIN_PROCESS
1217-
int darwin_proc_ret = setpriority(PRIO_DARWIN_PROCESS, 0, 0);
1218-
1219-
// 3. Set thread QoS to USER_INITIATED using platform compatibility layer
1220-
int qos_ret = lib::ob_set_thread_qos(lib::ObThreadQoS::USER_INITIATED);
1221-
1222-
// 4. Set normal process priority
1223-
int prio_ret = setpriority(PRIO_PROCESS, 0, 0);
1224-
1225-
_LOG_INFO("macOS daemon priority setup: darwin_thread=%d, darwin_proc=%d, qos=%d, prio=%d",
1226-
>>>>>>> master
12271207
darwin_thread_ret, darwin_proc_ret, qos_ret, prio_ret);
12281208
}
12291209
#endif

deps/oblib/src/lib/xml/ob_libxml2_sax_handler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,7 @@ void ObLibXml2SaxHandler::entity_reference(void *ctx, const xmlChar *name)
330330
}
331331
}
332332
#if defined(__APPLE__)
333-
<<<<<<< HEAD
334333
void ObLibXml2SaxHandler::structured_error(void *ctx, xmlError *error)
335-
=======
336-
void ObLibXml2SaxHandler::structured_error(void *ctx, xmlError *error)
337-
>>>>>>> master
338334
#else
339335
void ObLibXml2SaxHandler::structured_error(void *ctx, const xmlError *error)
340336
#endif

deps/oblib/src/rpc/obmysql/ob_sql_nio.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -95,30 +95,18 @@ static int kqueue_epoll_create1(int flags) {
9595
static int kqueue_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) {
9696
struct kevent kev[2];
9797
int n = 0;
98-
<<<<<<< HEAD
9998

10099
if (op == EPOLL_CTL_ADD || op == EPOLL_CTL_MOD) {
101100
uint16_t flags = EV_ADD | EV_ENABLE;
102101
if (event->events & EPOLLET) flags |= EV_CLEAR;
103102

104-
=======
105-
106-
if (op == EPOLL_CTL_ADD || op == EPOLL_CTL_MOD) {
107-
uint16_t flags = EV_ADD | EV_ENABLE;
108-
if (event->events & EPOLLET) flags |= EV_CLEAR;
109-
110-
>>>>>>> master
111103
if (event->events & EPOLLIN) {
112104
EV_SET(&kev[n++], fd, EVFILT_READ, flags, 0, 0, event->data.ptr);
113105
}
114106
if (event->events & EPOLLOUT) {
115107
EV_SET(&kev[n++], fd, EVFILT_WRITE, flags, 0, 0, event->data.ptr);
116108
}
117-
<<<<<<< HEAD
118109

119-
=======
120-
121-
>>>>>>> master
122110
if (op == EPOLL_CTL_MOD) {
123111
// For MOD, we might need to delete existing filters if they are not in the new event
124112
if (!(event->events & EPOLLIN)) {
@@ -139,11 +127,7 @@ static int kqueue_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
139127
errno = EINVAL;
140128
return -1;
141129
}
142-
<<<<<<< HEAD
143130

144-
=======
145-
146-
>>>>>>> master
147131
if (n > 0) {
148132
if (kevent(epfd, kev, n, NULL, 0, NULL) < 0) {
149133
if (op != EPOLL_CTL_DEL) return -1;
@@ -156,27 +140,16 @@ static int kqueue_epoll_wait(int epfd, struct epoll_event *events, int maxevents
156140
struct kevent *kevs = (struct kevent *)alloca(sizeof(struct kevent) * maxevents);
157141
struct timespec ts;
158142
struct timespec *pts = NULL;
159-
<<<<<<< HEAD
160143

161-
=======
162-
163-
>>>>>>> master
164144
if (timeout >= 0) {
165145
ts.tv_sec = timeout / 1000;
166146
ts.tv_nsec = (timeout % 1000) * 1000000;
167147
pts = &ts;
168148
}
169-
<<<<<<< HEAD
170149

171150
int n = kevent(epfd, NULL, 0, kevs, maxevents, pts);
172151
if (n < 0) return -1;
173152

174-
=======
175-
176-
int n = kevent(epfd, NULL, 0, kevs, maxevents, pts);
177-
if (n < 0) return -1;
178-
179-
>>>>>>> master
180153
for (int i = 0; i < n; i++) {
181154
events[i].events = 0;
182155
if (kevs[i].filter == EVFILT_READ) events[i].events |= EPOLLIN;

mittest/mtlenv/mock_tenant_module_env.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,7 @@ int MockTenantModuleEnv::init_dir()
506506
#else
507507
curr_dir_ = get_current_dir_name();
508508
#endif
509-
<<<<<<< HEAD
510509

511-
=======
512-
513-
>>>>>>> master
514510
int ret = OB_SUCCESS;
515511
sstable_dir_ = env_dir_ + "/sstable";
516512
clog_dir_ = env_dir_ + "/clog";

0 commit comments

Comments
 (0)