Skip to content

Commit 322548a

Browse files
committed
Update obsolete comments
Commit 9fab40a removed some pre-allocating logic in reorderbuffer.c, but left outdated comments in place. Repair. Author: Álvaro Herrera
1 parent 1d4e5ed commit 322548a

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/backend/replication/logical/reorderbuffer.c

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,6 @@ ReorderBufferGetTXN(ReorderBuffer *rb)
322322

323323
/*
324324
* Free a ReorderBufferTXN.
325-
*
326-
* Deallocation might be delayed for efficiency purposes, for details check
327-
* the comments above max_cached_changes's definition.
328325
*/
329326
static void
330327
ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
@@ -354,7 +351,7 @@ ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
354351
}
355352

356353
/*
357-
* Get an unused, possibly preallocated, ReorderBufferChange.
354+
* Get an fresh ReorderBufferChange.
358355
*/
359356
ReorderBufferChange *
360357
ReorderBufferGetChange(ReorderBuffer *rb)
@@ -370,9 +367,6 @@ ReorderBufferGetChange(ReorderBuffer *rb)
370367

371368
/*
372369
* Free an ReorderBufferChange.
373-
*
374-
* Deallocation might be delayed for efficiency purposes, for details check
375-
* the comments above max_cached_changes's definition.
376370
*/
377371
void
378372
ReorderBufferReturnChange(ReorderBuffer *rb, ReorderBufferChange *change)
@@ -423,8 +417,8 @@ ReorderBufferReturnChange(ReorderBuffer *rb, ReorderBufferChange *change)
423417
}
424418

425419
/*
426-
* Get an unused, possibly preallocated, ReorderBufferTupleBuf fitting at
427-
* least a tuple of size tuple_len (excluding header overhead).
420+
* Get a fresh ReorderBufferTupleBuf fitting at least a tuple of size
421+
* tuple_len (excluding header overhead).
428422
*/
429423
ReorderBufferTupleBuf *
430424
ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
@@ -446,9 +440,6 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
446440

447441
/*
448442
* Free an ReorderBufferTupleBuf.
449-
*
450-
* Deallocation might be delayed for efficiency purposes, for details check
451-
* the comments above max_cached_changes's definition.
452443
*/
453444
void
454445
ReorderBufferReturnTupleBuf(ReorderBuffer *rb, ReorderBufferTupleBuf *tuple)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy