Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84270b7

Browse files
committed
Fix error in cfs_alloc_page
1 parent69ddfa1 commit84270b7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎src/backend/storage/file/cfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ uint32 cfs_alloc_page(FileMap* map, uint32 oldSize, uint32 newSize)
479479
elog(ERROR,"CFS: segment file exceed 4Gb limit");
480480
}while (!pg_atomic_compare_exchange_u32(&map->hdr.physSize,&oldPhysSize,newPhysSize));
481481

482-
pg_atomic_fetch_sub_u32(&map->hdr.usedSize,newSize-oldSize);
482+
pg_atomic_fetch_add_u32(&map->hdr.usedSize,newSize-oldSize);
483483

484484
returnoldPhysSize;
485485
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp