Commit 08c5c6d2 authored by Peter Eisentraut's avatar Peter Eisentraut

pg_upgrade: Fix some minor code issues

96ef3b8f accidentally copied a not
applicable comment from the float8_pass_by_value code to the
data_checksums code.  Remove that.

87d3b35a changed pg_upgrade to
checking the checksum version rather than just the Boolean presence of
checksums, but didn't change the field type in its ControlData struct
from bool.  So this would not work correctly if there ever is a
checksum version larger than 1.
parent 88b54b07
...@@ -493,7 +493,6 @@ get_control_data(ClusterInfo *cluster, bool live_check) ...@@ -493,7 +493,6 @@ get_control_data(ClusterInfo *cluster, bool live_check)
pg_fatal("%d: controldata retrieval problem\n", __LINE__); pg_fatal("%d: controldata retrieval problem\n", __LINE__);
p++; /* remove ':' char */ p++; /* remove ':' char */
/* used later for contrib check */
cluster->controldata.data_checksum_version = str2uint(p); cluster->controldata.data_checksum_version = str2uint(p);
got_data_checksum_version = true; got_data_checksum_version = true;
} }
......
...@@ -219,7 +219,7 @@ typedef struct ...@@ -219,7 +219,7 @@ typedef struct
uint32 large_object; uint32 large_object;
bool date_is_int; bool date_is_int;
bool float8_pass_by_value; bool float8_pass_by_value;
bool data_checksum_version; uint32 data_checksum_version;
} ControlData; } ControlData;
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment