mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Don't use !! but != 0/NULL to force boolean evaluation.
I introduced several uses of !! to force bit arithmetic to be boolean, but per discussion the project prefers != 0/NULL. Discussion: CA+TgmoZP5KakLGP6B4vUjgMBUW0woq_dJYi0paOz-My0Hwt_vQ@mail.gmail.com
This commit is contained in:
@ -5335,7 +5335,8 @@ xact_redo_commit(xl_xact_parsed_commit *parsed,
|
||||
LWLockRelease(XidGenLock);
|
||||
}
|
||||
|
||||
Assert(!!(parsed->xinfo & XACT_XINFO_HAS_ORIGIN) == (origin_id != InvalidRepOriginId));
|
||||
Assert(((parsed->xinfo & XACT_XINFO_HAS_ORIGIN) == 0) ==
|
||||
(origin_id == InvalidRepOriginId));
|
||||
|
||||
if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
|
||||
commit_time = parsed->origin_timestamp;
|
||||
|
Reference in New Issue
Block a user