Skip to content

Commit f11cb69

Browse files
author
Alexander Korotkov
committed
Fix slru shmem allocation.
1 parent a45e506 commit f11cb69

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/slru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ SimpleLruInit(SlruCtl ctl, const char *name, int nslots, int nlsns,
202202
shared->page_dirty = (bool *) (ptr + offset);
203203
offset += MAXALIGN(nslots * sizeof(bool));
204204
shared->page_number = (int64 *) (ptr + offset);
205-
offset += MAXALIGN(nslots * sizeof(int));
205+
offset += MAXALIGN(nslots * sizeof(int64));
206206
shared->page_lru_count = (int *) (ptr + offset);
207207
offset += MAXALIGN(nslots * sizeof(int));
208208

0 commit comments

Comments
 (0)