Skip to content

Commit 3539109

Browse files
committed
less comments in test_decoding.c
1 parent 1b776d5 commit 3539109

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

contrib/test_decoding/test_decoding.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,6 @@ pg_filter_prepare(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
316316
* and allow decoding of running prepared tx, but such lock will prevent
317317
* any 2pc transaction commit during decoding time, that can be big
318318
* enough in case of massive changes/inserts in that tx.
319-
*
320-
* Better solution would be to use own custom lock here and register
321-
* XACT_EVENT_PRE_COMMIT callback in extension to conflict with this
322-
* lock. Decode should hold it in shared way, while commit in excluseve.
323-
* That will allow to lock stuff granularly ang block only tx that is
324-
* being decoded.
325319
*/
326320
LWLockRelease(TwoPhaseStateLock);
327321
return true;

0 commit comments

Comments
 (0)