We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eba6d2 commit ad263d1Copy full SHA for ad263d1
src/backend/storage/file/cfs.c
@@ -1050,16 +1050,13 @@ static bool cfs_gc_file(char* map_path, GC_CALL_KIND background)
1050
second_pass++;
1051
}
1052
1053
- if (n_pages1 > n_pages)
+ /* if file were truncated (vacuum???), clean a bit */
1054
+ for (i = n_pages; i < n_pages1; i++)
1055
{
- /* if file were truncated (vacuum???), clean a bit */
1056
- for (i = n_pages; i < n_pages1; i++)
1057
- {
1058
- inode_t nnode = newMap->inodes[i];
1059
- if (CFS_INODE_SIZE(nnode) != 0) {
1060
- newUsed -= CFS_INODE_SIZE(nnode);
1061
- newMap->inodes[i] = CFS_INODE(0, 0);
1062
- }
+ inode_t nnode = newMap->inodes[i];
+ if (CFS_INODE_SIZE(nnode) != 0) {
+ newUsed -= CFS_INODE_SIZE(nnode);
+ newMap->inodes[i] = CFS_INODE(0, 0);
1063
1064
1065
0 commit comments