[pgpool-general: 7885] Re: Clean up some code using "(expr) ? true : false"
lucy.fnst at fujitsu.com
lucy.fnst at fujitsu.com
Mon Nov 22 11:43:57 JST 2021
attachment
From: Lu, Chenyang/陆 晨阳
Sent: Monday, November 22, 2021 10:42 AM
To: pgpool-general at pgpool.net
Subject: Clean up some code using "(expr) ? true : false"
Hi
When I reviewed the code, I found that
some code paths were already using a boolean or used an expression that led to zero or one, making the extra bits unnecessary.
So I made a patch for this problem, such as the attachment.
Best regards
---------------------------------------------------------
Lu Chenyang
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
ADDR.: No.6 Wenzhu Road, Software Avenue,
Nanjing, 210012, China
TEL : +86+25-86630566-9431
COINS: 7998-9431
FAX : +86+25-83317685
MAIL : lucy.fnst at cn.fujitsu.com<mailto:lucy.fnst at cn.fujitsu.com>
---------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pgpool.net/pipermail/pgpool-general/attachments/20211122/67ff070e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgpool2.patch
Type: application/octet-stream
Size: 1990 bytes
Desc: pgpool2.patch
URL: <http://www.pgpool.net/pipermail/pgpool-general/attachments/20211122/67ff070e/attachment.obj>
More information about the pgpool-general
mailing list