This is an automated email from the ASF dual-hosted git repository.

gfphoenix78 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new e47859d8ce2 PAX: remove unused variables
e47859d8ce2 is described below

commit e47859d8ce275c099086e06cf9d6e941d3fd39b9
Author: Hao Wu <[email protected]>
AuthorDate: Thu Jul 31 07:23:50 2025 +0000

    PAX: remove unused variables
---
 contrib/pax_storage/src/cpp/manifest/manifest.c | 7 +------
 contrib/pax_storage/src/cpp/manifest/tuple.c    | 1 -
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/contrib/pax_storage/src/cpp/manifest/manifest.c 
b/contrib/pax_storage/src/cpp/manifest/manifest.c
index fb246a35b0c..c45efcb17a0 100644
--- a/contrib/pax_storage/src/cpp/manifest/manifest.c
+++ b/contrib/pax_storage/src/cpp/manifest/manifest.c
@@ -245,8 +245,6 @@ static void manifestvalue_to_json(yyjson_mut_doc *doc, 
yyjson_mut_val *obj,
 }
 
 Datum json_to_manifestvalue(yyjson_val *type_val, MetaFieldType typ) {
-  Datum value;
-
   switch (typ) {
   case Meta_Field_Type_Int:
     return Int32GetDatum(yyjson_get_int(type_val));
@@ -312,8 +310,7 @@ static const char *manifest_to_json(ManifestHeap *m, size_t 
*len) {
 
 static bool json_to_manifestheap(ManifestHeap *m, char *buf, int len) {
   size_t idx, max;
-  yyjson_val *datameta, *add, *remove;
-  const char *summary;
+  yyjson_val *datameta;
   yyjson_read_err err;
 
   yyjson_doc *doc =
@@ -411,7 +408,6 @@ void serialize_manifest(Relation rel, ManifestHeap 
*manifest, char *manifest_pax
  * we need refresh the new manifest file path in the top entrance table
  */
 void update_manifest_top_entrance(Relation rel, const char *manifest_path) {
-  Oid aux_oid;
   Relation aux_rel;
   TupleDesc desc;
   SysScanDesc scan;
@@ -562,7 +558,6 @@ Oid create_manifest_auxiliary_heap(Relation parentrel) {
  */
 void manifest_create(Relation rel, RelFileNode relnode) {
   char aux_relname[NAMEDATALEN];
-  ReindexParams reindex_params = {0};
   Relation aux_rel;
   Oid aux_oid;
   bool exists;
diff --git a/contrib/pax_storage/src/cpp/manifest/tuple.c 
b/contrib/pax_storage/src/cpp/manifest/tuple.c
index 6ac104ec1f9..b956058836e 100644
--- a/contrib/pax_storage/src/cpp/manifest/tuple.c
+++ b/contrib/pax_storage/src/cpp/manifest/tuple.c
@@ -284,7 +284,6 @@ void manifest_insert(ManifestRelation mrel, const MetaValue 
data[],
   MemoryContext oldctx;
   ManifestHeap *mheap;
   ManifestTuple mtuple;
-  Relation rel;
   
   oldctx = MemoryContextSwitchTo(mrel->mctx);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to