git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: fa2fc06) | patch
Refactor checksumming code to make it easier to use externally.
2013年6月14日 02:35:56 +0000 (22:35 -0400)
2013年6月14日 02:35:56 +0000 (22:35 -0400)
commit f04216341dd1cc235e975f93ac806d9d3729a344
Refactor checksumming code to make it easier to use externally.

pg_filedump and other external utility programs are likely to want to be
able to check Postgres page checksums. To avoid messy duplication of code,
move the checksumming functionality into an exported header file, much as
we did awhile back for the CRC code.

In passing, get rid of an unportable assumption that a static char[] array
will be word-aligned, and do some other minor code beautification.
src/backend/storage/buffer/bufmgr.c diff | blob | blame | history
src/backend/storage/page/bufpage.c diff | blob | blame | history
src/backend/storage/page/checksum.c diff | blob | blame | history
src/include/storage/checksum.h diff | blob | blame | history
src/include/storage/checksum_impl.h [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /