Skip to content

Commit 12ae2ca

Browse files
committed
Update settings
1 parent 4cf80a8 commit 12ae2ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

contrib/pax_storage/src/cpp/catalog/pax_aux_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ pax::MicroPartitionMetadata PaxGetMicroPartitionMetadata(Relation rel,
700700
paxc::FetchMicroPartitionAuxRow(rel, snapshot, block_id,
701701
FetchMicroPartitionAuxRowCallbackWrapper,
702702
&ctx);
703-
return std::move(ctx.info);
703+
return ctx.info;
704704
}
705705
CBDB_WRAP_END;
706706
}

contrib/pax_storage/src/cpp/comm/fast_io.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131

3232
// uring_likely may not be defined in older liburing versions
3333
#ifndef uring_likely
34-
#define uring_likely(x) __builtin_expect(!!(x), 1)
34+
#if __GNUC__ >= 3
35+
#define uring_likely(x) __builtin_expect((x) != 0, 1)
36+
#else
37+
#define uring_likely(x) ((x) != 0)
38+
#endif
3539
#endif
3640

3741
namespace pax

0 commit comments

Comments
 (0)