Skip to content

Commit 0c009c8

Browse files
author
Arseny Kositsyn
committed
[PGPRO-12159] Added a InvalidBlockNumber to the perl test.
Tags: rum
1 parent 239d16a commit 0c009c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/003_rum_debug_funcs.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
use PostgreSQL::Test::Utils;
55
use Test::More;
66

7+
# See storage/block.h
8+
my $invalid_block_number = '4294967295';
9+
710
# The function finds the leftmost leaf page of the Entry Tree.
811
# To do this, starting from the first page, it goes down the tree to the leaf.
912
sub find_min_leaf_entry_page
@@ -44,7 +47,7 @@ sub find_root_posting_tree
4447
{
4548
my ($idx_name, $cur_page_num, $node) = @_;
4649

47-
while ($cur_page_num ne '4294967295')
50+
while ($cur_page_num ne $invalid_block_number)
4851
{
4952
my $posting_tree_root = $node->safe_psql(
5053
"postgres", qq{
@@ -207,7 +210,7 @@ sub is_tid_list_sorted
207210
"postgres", qq{
208211
SELECT rightlink FROM rum_page_opaque_info('test_rum_idx_false', 0);
209212
});
210-
ok($opaque_meta eq '4294967295',
213+
ok($opaque_meta eq $invalid_block_number,
211214
qq{InvalidBlockNumber should be equal to '4294967295'});
212215
213216
# Testing the rum_internal_entry_page_items() function.

0 commit comments

Comments
 (0)