Skip to content

Commit

Permalink
Merge branch 'adb-6.x-dev' into ADBDEV-6573
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolb27 authored Nov 1, 2024
2 parents 4866d47 + 8ec3a02 commit 27861b5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gpcontrib/gpcloud/src/s3restful_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Response S3RESTfulService::post(const string &url, HTTPHeaders &headers,
UploadData uploadData(s3data);
curl_easy_setopt(curl, CURLOPT_READDATA, (void *)&uploadData);
curl_easy_setopt(curl, CURLOPT_READFUNCTION, RESTfulServiceReadFuncCallback);
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)data.size());
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)data.size());

this->performCurl(curl, response);

Expand Down
16 changes: 14 additions & 2 deletions src/backend/access/bitmap/bitmapattutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,23 @@ _bitmap_insert_lov(Relation lovHeap, Relation lovIndex, Datum *datum,
result = index_insert(lovIndex, indexDatum, indexNulls,
&(tuple->t_self), lovHeap, true);

SIMPLE_FAULT_INJECTOR("insert_bmlov_before_freeze");
#ifdef FAULT_INJECTOR
FaultInjector_InjectFaultIfSet(
"insert_bmlov_before_freeze",
DDLNotSpecified,
"", //databaseName
RelationGetRelationName(lovHeap));
#endif
/* freeze the tuple */
heap_freeze_tuple_wal_logged(lovHeap, tuple);

SIMPLE_FAULT_INJECTOR("insert_bmlov_after_freeze");
#ifdef FAULT_INJECTOR
FaultInjector_InjectFaultIfSet(
"insert_bmlov_after_freeze",
DDLNotSpecified,
"", //databaseName
RelationGetRelationName(lovHeap));
#endif
pfree(indexDatum);
pfree(indexNulls);
Assert(result);
Expand Down
4 changes: 2 additions & 2 deletions src/backend/catalog/oid_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ CreateKeyFromCatalogTuple(Relation catalogrel, HeapTuple tuple,
* during plannign stage to touch oid assignments.
*
*/
extern List*
List*
SaveOidAssignments()
{
List *src = NIL;
Expand All @@ -529,7 +529,7 @@ SaveOidAssignments()
return src;
}

extern void
void
RestoreOidAssignments(List *oid_assignments)
{
List **target;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/commands/exttablecmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static Datum optionsListToArray(List *options);
* to leave it intact and do another dispatch.
* ----------------------------------------------------------------
*/
extern void
void
DefineExternalRelation(CreateExternalStmt *createExtStmt)
{
CreateStmt *createStmt = makeNode(CreateStmt);
Expand Down
4 changes: 2 additions & 2 deletions src/backend/commands/resgroupcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ checkCpusetSyntax(const char *cpuset)
/*
* Check Cpuset by coordinator and segment
*/
extern void
void
checkCpuSetByRole(const char *cpuset)
{
char *first = NULL;
Expand Down Expand Up @@ -1652,7 +1652,7 @@ checkCpuSetByRole(const char *cpuset)
* cpuset = "1"
* assign '1' to both coordinator and segment
*/
extern char *
char *
getCpuSetByRole(const char *cpuset)
{
char *splitcpuset = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/utils/adt/complex_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ construct_complex(PG_FUNCTION_ARGS)
/*
* construct_complex_trig - returns arg1*cos(arg2) + arg1*sin(arg2)i
*/
extern Datum
Datum
construct_complex_trig(PG_FUNCTION_ARGS)
{
double mag = PG_GETARG_FLOAT8(0);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/utils/misc/faultinjector.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ FaultInjector_InjectFaultIfSet_out_of_line(
/* fault injection is not set for the specified database name */
break;

if (strcmp(entryShared->tableName, tableNameLocal) != 0)
if (strlen(entryShared->tableName) > 0 && strcmp(entryShared->tableName, tableNameLocal) != 0)
/* fault injection is not set for the specified table name */
break;

Expand Down

0 comments on commit 27861b5

Please sign in to comment.