Skip to content

Commit 9ffef0c

Browse files
committed
Fixed assertion in core_2879 and related serious bug
1 parent 0592438 commit 9ffef0c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/jrd/Database.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ namespace Jrd
970970
bool rc = dbb_del_pages.findEx(
971971
[relation](const DelPagesMarker& item) -> int
972972
{
973-
return std::greater{}(item.relation, relation);
973+
return item.relation == relation ? 0 : 1;
974974
},
975975
dummy);
976976
fb_assert(!rc);
@@ -987,7 +987,7 @@ namespace Jrd
987987
bool found = dbb_del_pages.findEx(
988988
[relation](const DelPagesMarker& item) -> int
989989
{
990-
return std::greater{}(item.relation, relation);
990+
return item.relation == relation ? 0 : 1;
991991
},
992992
pos);
993993

0 commit comments

Comments
 (0)