Skip to content

Commit 18133ae

Browse files
committed
recompress_chunk_segmentwise_impl
1 parent f82fa1e commit 18133ae

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

tsl/src/compression/recompress.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ tsl_recompress_chunk_segmentwise(PG_FUNCTION_ARGS)
126126
NameStr(chunk->fd.schema_name),
127127
NameStr(chunk->fd.table_name));
128128
}
129-
uncompressed_relid = recompress_chunk_segmentwise_impl(chunk, nullable_orderby);
129+
recompress_chunk_segmentwise_impl(chunk, nullable_orderby);
130130
}
131131

132132
PG_RETURN_OID(uncompressed_relid);
@@ -235,7 +235,7 @@ free_chunk_recompress_ctx(RecompressContext *recompress_ctx)
235235
pfree(recompress_ctx);
236236
}
237237

238-
Oid
238+
void
239239
recompress_chunk_segmentwise_impl(Chunk *uncompressed_chunk,
240240
bool fullrecompress /* do full decompress/compress segmentwise */)
241241
{
@@ -307,7 +307,7 @@ recompress_chunk_segmentwise_impl(Chunk *uncompressed_chunk,
307307
table_close(uncompressed_chunk_rel, NoLock);
308308
table_close(compressed_chunk_rel, NoLock);
309309

310-
PG_RETURN_OID(uncompressed_relid);
310+
return;
311311
}
312312
}
313313

@@ -739,8 +739,6 @@ recompress_chunk_segmentwise_impl(Chunk *uncompressed_chunk,
739739

740740
table_close(uncompressed_chunk_rel, NoLock);
741741
table_close(compressed_chunk_rel, NoLock);
742-
743-
PG_RETURN_OID(uncompressed_relid);
744742
}
745743

746744
/*

tsl/src/compression/recompress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef struct RecompressContext
3030

3131
extern Datum tsl_recompress_chunk_segmentwise(PG_FUNCTION_ARGS);
3232

33-
Oid recompress_chunk_segmentwise_impl(Chunk *chunk, bool fullrecompress);
33+
void recompress_chunk_segmentwise_impl(Chunk *chunk, bool fullrecompress);
3434
bool recompress_chunk_in_memory_impl(Chunk *uncompressed_chunk);
3535

3636
/* Result of matching an uncompressed tuple against a compressed batch */

0 commit comments

Comments
 (0)