forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdcd052c
committed
Fix pg_atomic_u64 initialization.
As Andres pointed out, pg_atomic_init_u64 must be used to initialize anatomic variable, before it can be accessed with the actual atomic ops.Trying to use pg_atomic_write_u64 on an uninitialized variable leads to afailure with the fallback implementation that uses a spinlock.Discussion:https://www.postgresql.org/message-id/20170816191346.d3ke5tpshhco4bnd%40alap3.anarazel.de1 parentec0a69e commitdcd052c
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1638 | 1638 |
| |
1639 | 1639 |
| |
1640 | 1640 |
| |
1641 |
| - | |
| 1641 | + | |
1642 | 1642 |
| |
1643 | 1643 |
| |
1644 | 1644 |
| |
|
0 commit comments
Comments
(0)