mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +03:00
Make some use of anonymous unions [reorderbuffer xact_time]
Make some use of anonymous unions, which are allowed as of C11, as examples and encouragement for future code, and to test compilers. This commit changes the ReorderBufferTXN struct. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org
This commit is contained in:
@@ -359,7 +359,7 @@ typedef struct ReorderBufferTXN
|
||||
TimestampTz commit_time;
|
||||
TimestampTz prepare_time;
|
||||
TimestampTz abort_time;
|
||||
} xact_time;
|
||||
};
|
||||
|
||||
/*
|
||||
* The base snapshot is used to decode all changes until either this
|
||||
|
Reference in New Issue
Block a user