Skip to content

Commit dc54e89

Browse files
committed
comments
1 parent 6d65233 commit dc54e89

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

reinit.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
# This script assumes that it is placed in postgres repository root,
4+
# and postgres configured with --prefix=$PG_REPO_ROOT/install
5+
36
reinit_master() {
47
rm -rf install/data
58

@@ -18,7 +21,7 @@ reinit_master() {
1821

1922
echo '---- test ----' >> ./install/logfile
2023

21-
echo 'local replication stas trust' >> ./install/data/pg_hba.conf
24+
echo "local replication `whoami` trust" >> ./install/data/pg_hba.conf
2225

2326
./install/bin/pg_ctl -sw -D ./install/data -l ./install/logfile start
2427
}
@@ -41,7 +44,7 @@ reinit_slave() {
4144
}
4245

4346
postinit(){
44-
./install/bin/createdb stas
47+
./install/bin/createdb `whoami`
4548
./install/bin/psql -c "create table t(id int);"
4649
}
4750

src/backend/access/transam/twophase.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,11 @@ XlogRedoFinishPrepared(TransactionId xid)
16651665
ProcArrayRemove(proc, latestXid);
16661666
gxact->valid = false;
16671667

1668+
/*
1669+
* 2REVIEWER: I assume that we can skip invalidation callbacks here,
1670+
* aren't we?
1671+
*/
1672+
16681673
/* And release locks */
16691674
if (true)
16701675
ProcessRecords(bufptr, xid, twophase_postcommit_callbacks);

0 commit comments

Comments
 (0)