OSDN Git Service

Minor code rationalization: FlushRelationBuffers just returns void,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 May 2004 19:24:05 +0000 (19:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 May 2004 19:24:05 +0000 (19:24 +0000)
commite674707968059459960304981fc0a1d7a6049e24
treef276eafb51fa96700fd49a3e7bb309516fbec280
parenta843053e2e596da640d2afc73eeaa1f9273fff38
Minor code rationalization: FlushRelationBuffers just returns void,
rather than an error code, and does elog(ERROR) not elog(WARNING)
when it detects a problem.  All callers were simply elog(ERROR)'ing on
failure return anyway, and I find it hard to envision a caller that would
not, so we may as well simplify the callers and produce the more useful
error message directly.
src/backend/access/nbtree/nbtree.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/cluster.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/backend/storage/buffer/bufmgr.c
src/include/storage/bufmgr.h