File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 37
37
*
38
38
*
39
39
* IDENTIFICATION
40
- * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.45 2007/10/04 15:37:44 tgl Exp $
40
+ * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.46 2007/11/14 21:19:18 tgl Exp $
41
41
*
42
42
*-------------------------------------------------------------------------
43
43
*/
@@ -718,7 +718,7 @@ IsCheckpointOnSchedule(double progress)
718
718
recptr = GetInsertRecPtr ();
719
719
elapsed_xlogs =
720
720
(((double ) (int32 ) (recptr .xlogid - ckpt_start_recptr .xlogid )) * XLogSegsPerFile +
721
- ((double ) ( int32 ) ( recptr .xrecoff - ckpt_start_recptr .xrecoff ) ) / XLogSegSize ) /
721
+ ((double ) recptr .xrecoff - ( double ) ckpt_start_recptr .xrecoff ) / XLogSegSize ) /
722
722
CheckPointSegments ;
723
723
724
724
if (progress < elapsed_xlogs )
You can’t perform that action at this time.
0 commit comments