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

Commit 2adff4b

Browse files
committed
Remove bogus Assert from AbsoluteTimeIsBefore(). (If you don't think
it's bogus, try building a btree index on the regress tests' abstime_tbl.)
1 parent a43f20c commit 2adff4b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/backend/utils/adt/nabstime.c

+2-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.83 2001/03/22 03:59:52 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.84 2001/04/26 21:52:17 tgl Exp $
1313
*
1414
* NOTES
1515
*
@@ -432,14 +432,11 @@ nabstimeout(PG_FUNCTION_ARGS)
432432

433433
/*
434434
* AbsoluteTimeIsBefore -- true iff time1 is before time2.
435-
* AbsoluteTimeIsBefore -- true iff time1 is after time2.
435+
* AbsoluteTimeIsAfter -- true iff time1 is after time2.
436436
*/
437437
bool
438438
AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
439439
{
440-
Assert(AbsoluteTimeIsValid(time1));
441-
Assert(AbsoluteTimeIsValid(time2));
442-
443440
if (time1 == CURRENT_ABSTIME)
444441
time1 = GetCurrentTransactionStartTime();
445442

@@ -453,9 +450,6 @@ AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
453450
bool
454451
AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2)
455452
{
456-
Assert(AbsoluteTimeIsValid(time1));
457-
Assert(AbsoluteTimeIsValid(time2));
458-
459453
if (time1 == CURRENT_ABSTIME)
460454
time1 = GetCurrentTransactionStartTime();
461455

0 commit comments

Comments
 (0)