Skip to content

Commit e47859d

Browse files
committed
PAX: remove unused variables
1 parent bd5f6da commit e47859d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

contrib/pax_storage/src/cpp/manifest/manifest.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,6 @@ static void manifestvalue_to_json(yyjson_mut_doc *doc, yyjson_mut_val *obj,
245245
}
246246

247247
Datum json_to_manifestvalue(yyjson_val *type_val, MetaFieldType typ) {
248-
Datum value;
249-
250248
switch (typ) {
251249
case Meta_Field_Type_Int:
252250
return Int32GetDatum(yyjson_get_int(type_val));
@@ -312,8 +310,7 @@ static const char *manifest_to_json(ManifestHeap *m, size_t *len) {
312310

313311
static bool json_to_manifestheap(ManifestHeap *m, char *buf, int len) {
314312
size_t idx, max;
315-
yyjson_val *datameta, *add, *remove;
316-
const char *summary;
313+
yyjson_val *datameta;
317314
yyjson_read_err err;
318315

319316
yyjson_doc *doc =
@@ -411,7 +408,6 @@ void serialize_manifest(Relation rel, ManifestHeap *manifest, char *manifest_pax
411408
* we need refresh the new manifest file path in the top entrance table
412409
*/
413410
void update_manifest_top_entrance(Relation rel, const char *manifest_path) {
414-
Oid aux_oid;
415411
Relation aux_rel;
416412
TupleDesc desc;
417413
SysScanDesc scan;
@@ -562,7 +558,6 @@ Oid create_manifest_auxiliary_heap(Relation parentrel) {
562558
*/
563559
void manifest_create(Relation rel, RelFileNode relnode) {
564560
char aux_relname[NAMEDATALEN];
565-
ReindexParams reindex_params = {0};
566561
Relation aux_rel;
567562
Oid aux_oid;
568563
bool exists;

contrib/pax_storage/src/cpp/manifest/tuple.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ void manifest_insert(ManifestRelation mrel, const MetaValue data[],
284284
MemoryContext oldctx;
285285
ManifestHeap *mheap;
286286
ManifestTuple mtuple;
287-
Relation rel;
288287

289288
oldctx = MemoryContextSwitchTo(mrel->mctx);
290289

0 commit comments

Comments
 (0)