Skip to content

Commit dbf1435

Browse files
committed
[PGPRO-5691]
* fix tap test (remove checking of ptrack.map.mmap file) * cosmetic change (minimize diff with master)
1 parent 3ab1107 commit dbf1435

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

engine.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ extern PtrackMap ptrack_map;
9898
* Size of ptrack map in bytes
9999
* TODO: to be protected by PtrackResizeLock?
100100
*/
101-
extern uint64 ptrack_map_size;
102-
extern uint64 *ptrack_map_size_requested_at_startup;
101+
extern uint64 ptrack_map_size;
103102
extern int ptrack_map_size_tmp;
104103

105104
extern void ptrackCheckpoint(void);

ptrack.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858

5959
PG_MODULE_MAGIC;
6060

61-
PtrackMap ptrack_map = NULL;
62-
uint64 ptrack_map_size = 0;
63-
int ptrack_map_size_tmp;
61+
PtrackMap ptrack_map = NULL;
62+
uint64 ptrack_map_size = 0;
63+
int ptrack_map_size_tmp;
6464

6565
static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
6666
static copydir_hook_type prev_copydir_hook = NULL;

t/001_basic.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@
155155
# Check that we have lost everything
156156
ok(! -f $node->data_dir . "/global/ptrack.map", "ptrack.map should be cleaned up");
157157
ok(! -f $node->data_dir . "/global/ptrack.map.tmp", "ptrack.map.tmp should be cleaned up");
158-
ok(! -f $node->data_dir . "/global/ptrack.map.mmap", "ptrack.map.mmap should be cleaned up");
159158

160159
($res, $res_stdout, $res_stderr) = $node->psql("postgres", "SELECT ptrack_get_pagemapset('0/0')");
161160
is($res, 3, 'errors out if ptrack is disabled');

0 commit comments

Comments
 (0)