*** pgsql/src/backend/access/transam/xlog.c 2010/02/26 02:00:35 1.379 --- pgsql/src/backend/access/transam/xlog.c 2010/03/10 02:04:48 1.380 *************** *** 7,13 **** * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.378 2010/02/25 02:17:50 tgl Exp $ * *------------------------------------------------------------------------- */ --- 7,13 ---- * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.379 2010/02/26 02:00:35 momjian Exp $ * *------------------------------------------------------------------------- */ *************** pg_start_backup(PG_FUNCTION_ARGS) *** 7897,7903 **** * REDO pointer. The oldest point in WAL that would be needed to * restore starting from the checkpoint is precisely the REDO pointer. */ ! LWLockAcquire(ControlFileLock, LW_EXCLUSIVE); checkpointloc = ControlFile->checkPoint; startpoint = ControlFile->checkPointCopy.redo; LWLockRelease(ControlFileLock); --- 7897,7903 ---- * REDO pointer. The oldest point in WAL that would be needed to * restore starting from the checkpoint is precisely the REDO pointer. */ ! LWLockAcquire(ControlFileLock, LW_SHARED); checkpointloc = ControlFile->checkPoint; startpoint = ControlFile->checkPointCopy.redo; LWLockRelease(ControlFileLock);