MCPcopy Create free account
hub / github.com/apache/cloudberry / AOSegfileFormatVersion_CheckValid

Function AOSegfileFormatVersion_CheckValid

src/include/catalog/pg_appendonly.h:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98extern bool Debug_appendonly_print_verify_write_block;
99
100static inline void AOSegfileFormatVersion_CheckValid(int version)
101{
102 if (!AOSegfileFormatVersion_IsValid(version))
103 {
104 ereport(Debug_appendonly_print_verify_write_block?PANIC:ERROR,
105 (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
106 errmsg("append-only table version %d is invalid", version),
107 errprintstack(true)));
108 }
109}
110
111/*
112 * Versions higher than AOSegfileFormatVersion_Original include the fixes for AOBlock and

Calls 3

errcodeFunction · 0.50
errmsgFunction · 0.50
errprintstackFunction · 0.50

Tested by

no test coverage detected