You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by ch...@apache.org on 2025/11/06 14:24:17 UTC
(cloudberry) branch cbdb-postgres-merge updated: Remove extra lock
This is an automated email from the ASF dual-hosted git repository.
chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this push:
new fa49d0576cc Remove extra lock
fa49d0576cc is described below
commit fa49d0576cc8f75de5d997bc3d88d2c74103760f
Author: Jinbao Chen <ch...@gmail.com>
AuthorDate: Thu Nov 6 22:24:03 2025 +0800
Remove extra lock
---
src/backend/commands/sequence.c | 4 +---
src/test/regress/serial_schedule | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c
index c57880e3956..29992eb02fd 100644
--- a/src/backend/commands/sequence.c
+++ b/src/backend/commands/sequence.c
@@ -438,7 +438,7 @@ fill_seq_with_data(Relation rel, HeapTuple tuple)
* Initialize a sequence's relation fork with the specified tuple as content
*/
static void
-fill_seq_fork_with_data(Relation rel, HeapTuple tuple, ForkNumber forkNum)
+ fill_seq_fork_with_data(Relation rel, HeapTuple tuple, ForkNumber forkNum)
{
Buffer buf;
Page page;
@@ -453,8 +453,6 @@ fill_seq_fork_with_data(Relation rel, HeapTuple tuple, ForkNumber forkNum)
page = BufferGetPage(buf);
- LockBuffer(buf, BUFFER_LOCK_EXCLUSIVE);
-
PageInit(page, BufferGetPageSize(buf), sizeof(sequence_magic));
sm = (sequence_magic *) PageGetSpecialPointer(page);
sm->magic = SEQ_MAGIC;
diff --git a/src/test/regress/serial_schedule b/src/test/regress/serial_schedule
index cbfe7e9aea8..c10ea775bd7 100644
--- a/src/test/regress/serial_schedule
+++ b/src/test/regress/serial_schedule
@@ -58,7 +58,7 @@ test: create_type
test: create_table
# test: create_function_2
test: copy
-# test: copyselect
+test: copyselect
# test: copydml
# test: insert
# test: insert_conflict
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org