Fix gen_node_support.pl for changed AclMode size
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 25 Nov 2022 13:55:56 +0000 (08:55 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 25 Nov 2022 13:55:56 +0000 (08:55 -0500)
omitted from 7b378237aa, mea culpa.

Complaint and fix from Amit Langote.

src/backend/nodes/gen_node_support.pl

index d3f25299ded7643deb6e66995dce8d3519b2542a..b6f086e2623cb88b1af6a2a98283ab6ed8611ef0 100644 (file)
@@ -954,7 +954,6 @@ _read${n}(void)
                }
                elsif ($t eq 'uint32'
                        || $t eq 'bits32'
-                       || $t eq 'AclMode'
                        || $t eq 'BlockNumber'
                        || $t eq 'Index'
                        || $t eq 'SubTransactionId')
@@ -962,7 +961,8 @@ _read${n}(void)
                        print $off "\tWRITE_UINT_FIELD($f);\n";
                        print $rff "\tREAD_UINT_FIELD($f);\n" unless $no_read;
                }
-               elsif ($t eq 'uint64')
+               elsif ($t eq 'uint64'
+                       || $t eq 'AclMode')
                {
                        print $off "\tWRITE_UINT64_FIELD($f);\n";
                        print $rff "\tREAD_UINT64_FIELD($f);\n" unless $no_read;