Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92927df

Browse files
committed
fix client ERROR message
1 parent b82ebd0 commit 92927df

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ static bool MtmRunUtilityStmt(PGconn* conn, char const* sql, char **errmsg)
21342134
*errmsg = palloc0(errlen);
21352135

21362136
/* Strip "ERROR:\t" from beginning and "\n" from end of error string */
2137-
strncpy(*errmsg, errstr + 7, errlen - 1 - 7);
2137+
strncpy(*errmsg, errstr + 8, errlen - 1 - 8);
21382138
}
21392139

21402140
PQclear(result);

tests/postgresql.conf.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,3 +626,4 @@
626626

627627
multimaster.workers=8
628628
multimaster.queue_size=104857600 # 100mb
629+
multimaster.ignore_tables_without_pk=1

tests/reinit-mm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ pkill -9 arbiter
66

77
cd ~/code/postgres_cluster/contrib/mmts/
88
make install
9+
cd ~/code/postgres_cluster/contrib/raftable/
10+
make install
911
cd ~/code/postgres_cluster/contrib/mmts/tests
1012

1113

0 commit comments

Comments
 (0)