Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 21654b5

Browse files
committed
cfs: fix previous commit
1 parent a25ca5c commit 21654b5

File tree

1 file changed

+2
-0
lines changed
  • src/backend/storage/file

1 file changed

+2
-0
lines changed

src/backend/storage/file/cfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,8 @@ static bool cfs_gc_file(char* map_path, GC_CALL_KIND background)
10701070
newSize = 0;
10711071
writeback = 0;
10721072
second_pass_whole = true;
1073+
rc = lseek(fd2, 0, SEEK_SET);
1074+
Assert(rc == 0);
10731075
memset(newMap->inodes, 0, sizeof(newMap->inodes));
10741076
for (i = 0; i < n_pages; i++)
10751077
{

0 commit comments

Comments
 (0)