Fix typo in comment.

pull/82/head
Etsuro Fujita 3 years ago
parent ed57cac84d
commit d89f97e83e
  1. 2
      src/backend/storage/ipc/latch.c

@ -689,7 +689,7 @@ CreateWaitEventSet(MemoryContext context, int nevents)
* Use MAXALIGN size/alignment to guarantee that later uses of memory are * Use MAXALIGN size/alignment to guarantee that later uses of memory are
* aligned correctly. E.g. epoll_event might need 8 byte alignment on some * aligned correctly. E.g. epoll_event might need 8 byte alignment on some
* platforms, but earlier allocations like WaitEventSet and WaitEvent * platforms, but earlier allocations like WaitEventSet and WaitEvent
* might not sized to guarantee that when purely using sizeof(). * might not be sized to guarantee that when purely using sizeof().
*/ */
sz += MAXALIGN(sizeof(WaitEventSet)); sz += MAXALIGN(sizeof(WaitEventSet));
sz += MAXALIGN(sizeof(WaitEvent) * nevents); sz += MAXALIGN(sizeof(WaitEvent) * nevents);

Loading…
Cancel
Save