Skip to content

Commit 6db1edf

Browse files
author
Sokolov Yura
committed
cfs_recover_map: update values at the end.
1 parent f4f03be commit 6db1edf

File tree

1 file changed

+12
-12
lines changed
  • src/backend/storage/file

1 file changed

+12
-12
lines changed

src/backend/storage/file/cfs.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,18 +1837,18 @@ void cfs_recover_map(FileMap* map)
18371837
}
18381838
usedSize += size;
18391839
}
1840-
if (usedSize != pg_atomic_read_u32(&map->hdr.usedSize))
1841-
{
1842-
pg_atomic_write_u32(&map->hdr.usedSize, usedSize);
1843-
}
1844-
if (physSize != pg_atomic_read_u32(&map->hdr.physSize))
1845-
{
1846-
pg_atomic_write_u32(&map->hdr.physSize, physSize);
1847-
}
1848-
if (virtSize != pg_atomic_read_u32(&map->hdr.virtSize))
1849-
{
1850-
pg_atomic_write_u32(&map->hdr.virtSize, virtSize);
1851-
}
1840+
}
1841+
if (usedSize != pg_atomic_read_u32(&map->hdr.usedSize))
1842+
{
1843+
pg_atomic_write_u32(&map->hdr.usedSize, usedSize);
1844+
}
1845+
if (physSize != pg_atomic_read_u32(&map->hdr.physSize))
1846+
{
1847+
pg_atomic_write_u32(&map->hdr.physSize, physSize);
1848+
}
1849+
if (virtSize != pg_atomic_read_u32(&map->hdr.virtSize))
1850+
{
1851+
pg_atomic_write_u32(&map->hdr.virtSize, virtSize);
18521852
}
18531853
}
18541854

0 commit comments

Comments
 (0)