Skip to content

Commit ab845b0

Browse files
committed
Merge branch 'xtm' of gitlab.postgrespro.ru:pgpro-dev/postgrespro into xtm
2 parents 6309492 + 6c7696f commit ab845b0

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

contrib/pg_xtm/tests/transfers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var running = false
3333
func prepare_db() {
3434
var xids [2]int
3535
var csn int64a
36+
nodes := []int{0,1}
3637

3738
conn1, err := pgx.Connect(cfg1)
3839
checkErr(err)
@@ -61,7 +62,7 @@ func prepare_db() {
6162
xids[1] = execQuery(conn2, "select txid_current()")
6263

6364
// register global transaction in DTMD
64-
exec(conn1, "select dtm_global_transaction($1)", xids)
65+
exec(conn1, "select dtm_global_transaction($1)", nodes, xids)
6566

6667
// first global statement
6768
exec(conn1, "select dtm_get_snapshot()")

install.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
./install/bin/pg_ctl -D ./install/data1 stop
4+
./install/bin/pg_ctl -D ./install/data2 stop
5+
6+
rm -rf install
7+
8+
make install
9+
10+
cd contrib/pg_xtm/
11+
12+
make clean
13+
make
14+
make install
15+
16+
cd ../..
17+
18+
./install/bin/initdb -D ./install/data1
19+
./install/bin/initdb -D ./install/data2
20+
21+
sed -i '' 's/#port =.*/port = 5433/' ./install/data2/postgresql.conf
22+
23+
24+
25+
./install/bin/pg_ctl -D ./install/data1 -l ./install/data1/log start
26+
./install/bin/pg_ctl -D ./install/data2 -l ./install/data2/log start
27+
28+
29+
cd contrib/pg_dtm/dtmd
30+
make clean
31+
make
32+
./bin/dtmd

0 commit comments

Comments
 (0)