aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-25 15:36:33 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-25 15:43:05 -0400
commit99fb44357c14bf674966b6f08afd311028ce827c (patch)
tree9ab7cb51f629d2e466bffa14b1caeb5b80e53ba5 /src
parent6eec6724ff4519ff67c9d402d65ad8a6c27e1d0e (diff)
downloadpostgresql-99fb44357c14bf674966b6f08afd311028ce827c.tar.gz
postgresql-99fb44357c14bf674966b6f08afd311028ce827c.zip
Update obsolete comments
Commit 9fab40ad32ef removed some pre-allocating logic in reorderbuffer.c, but left outdated comments in place. Repair. Author: Álvaro Herrera
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 4c603563466..9774eacbee4 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -324,9 +324,6 @@ ReorderBufferGetTXN(ReorderBuffer *rb)
/*
* Free a ReorderBufferTXN.
- *
- * Deallocation might be delayed for efficiency purposes, for details check
- * the comments above max_cached_changes's definition.
*/
static void
ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
@@ -356,7 +353,7 @@ ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
}
/*
- * Get an unused, possibly preallocated, ReorderBufferChange.
+ * Get an fresh ReorderBufferChange.
*/
ReorderBufferChange *
ReorderBufferGetChange(ReorderBuffer *rb)
@@ -372,9 +369,6 @@ ReorderBufferGetChange(ReorderBuffer *rb)
/*
* Free an ReorderBufferChange.
- *
- * Deallocation might be delayed for efficiency purposes, for details check
- * the comments above max_cached_changes's definition.
*/
void
ReorderBufferReturnChange(ReorderBuffer *rb, ReorderBufferChange *change)
@@ -424,8 +418,8 @@ ReorderBufferReturnChange(ReorderBuffer *rb, ReorderBufferChange *change)
}
/*
- * Get an unused, possibly preallocated, ReorderBufferTupleBuf fitting at
- * least a tuple of size tuple_len (excluding header overhead).
+ * Get a fresh ReorderBufferTupleBuf fitting at least a tuple of size
+ * tuple_len (excluding header overhead).
*/
ReorderBufferTupleBuf *
ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
@@ -477,9 +471,6 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
/*
* Free an ReorderBufferTupleBuf.
- *
- * Deallocation might be delayed for efficiency purposes, for details check
- * the comments above max_cached_changes's definition.
*/
void
ReorderBufferReturnTupleBuf(ReorderBuffer *rb, ReorderBufferTupleBuf *tuple)