Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-12
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)