wal_decoding: mergme: correct assert (via Alvaro) bdr/0.3
authorAndres Freund <[email protected]>
Tue, 23 Apr 2013 20:41:55 +0000 (22:41 +0200)
committerAndres Freund <[email protected]>
Tue, 23 Apr 2013 20:41:55 +0000 (22:41 +0200)
src/backend/replication/logical/reorderbuffer.c

index 00eda20bd28697339e46f76a23471cc4f1a30aff..c3793652d1d0a075193712c49368b05595a55fd5 100644 (file)
@@ -2018,7 +2018,7 @@ ReorderBufferToastAppendChunk(ReorderBuffer *cache, ReorderBufferTXN *txn,
    if (txn->toast_hash == NULL)
        ReorderBufferToastInitHash(cache, txn);
 
-   IsToastRelation(relation);
+   Assert(IsToastRelation(relation));
 
    chunk_id = DatumGetObjectId(fastgetattr(&change->newtuple->tuple, 1, desc, &isnull));
    Assert(!isnull);