Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d5b2146

Browse files
committed
Merge branch 'PGPROEE10_scheduler' into PGPROEE10
2 parents 9890857 + b2ebdb0 commit d5b2146

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

contrib/pgpro_scheduler/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ else
2424
subdir = contrib/pgpro_scheduler
2525
top_builddir = ../..
2626
include $(top_builddir)/src/Makefile.global
27-
ifneq ($(MAJORVERSION),10)
28-
PG_CPPFLAGS = -D_WITH_MTM -I$(top_srcdir)/contrib/mmts -I$(libpq_srcdir)
29-
endif
27+
# ifneq ($(MAJORVERSION),10)
28+
# PG_CPPFLAGS = -D_WITH_MTM -I$(top_srcdir)/contrib/mmts -I$(libpq_srcdir)
29+
# endif
30+
PG_CPPFLAGS = -D_WITH_MTM -I$(top_srcdir)/contrib/mmts -I$(libpq_srcdir)
3031
include $(top_srcdir)/contrib/contrib-global.mk
3132
endif
3233

contrib/pgpro_scheduler/src/scheduler_manager.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -959,14 +959,14 @@ void init_executor_shared_data(schd_executor_share_t *data, scheduler_manager_ct
959959
strcpy(data->database, ctx->database);
960960
else
961961
elog(ERROR, "String \"%s\"\n"
962-
"has %lu symbols, while it should have less than %d symbols.",
962+
"has %lu symbols, while it should have less than %d symbols.",
963963
ctx->database, strlen(ctx->database), PGPRO_SCHEDULER_DBNAME_MAX);
964964

965965
if(strlen(job->node) < PGPRO_SCHEDULER_NODENAME_MAX)
966966
strcpy(data->nodename, job->node);
967967
else
968968
elog(ERROR, "String \"%s\"\n"
969-
"has %lu symbols, while it should have less than %d symbols.",
969+
"has %lu symbols, while it should have less than %d symbols.",
970970
job->node, strlen(job->node), PGPRO_SCHEDULER_NODENAME_MAX);
971971

972972
data->new_job = true;
@@ -1800,14 +1800,14 @@ int start_at_worker(scheduler_manager_ctx_t *ctx, int pos)
18001800
strcpy(shm_data->database, ctx->database);
18011801
else
18021802
elog(ERROR, "String \"%s\"\n"
1803-
"has %lu symbols, while it should have less than %d symbols.",
1803+
"has %lu symbols, while it should have less than %d symbols.",
18041804
ctx->database, strlen(ctx->database), PGPRO_SCHEDULER_DBNAME_MAX);
18051805

18061806
if(strlen(ctx->nodename) < PGPRO_SCHEDULER_NODENAME_MAX)
18071807
strcpy(shm_data->nodename, ctx->nodename);
18081808
else
18091809
elog(ERROR, "String \"%s\"\n"
1810-
"has %lu symbols, while it should have less than %d symbols.",
1810+
"has %lu symbols, while it should have less than %d symbols.",
18111811
ctx->nodename, strlen(ctx->nodename), PGPRO_SCHEDULER_NODENAME_MAX);
18121812

18131813
shm_data->stop_worker = false;
@@ -1970,7 +1970,7 @@ void manager_worker_main(Datum arg)
19701970
if(is_under_mtm())
19711971
{
19721972
check_mtm_nodes_status();
1973-
print_log_mtm_nodes();
1973+
/* print_log_mtm_nodes(); */
19741974
time_to_check = 3;
19751975
}
19761976
#endif
@@ -2019,7 +2019,7 @@ void manager_worker_main(Datum arg)
20192019
if(is_under_mtm() && !time_to_check--)
20202020
{
20212021
check_mtm_nodes_status();
2022-
print_log_mtm_nodes();
2022+
/* print_log_mtm_nodes(); */
20232023
time_to_check = 3;
20242024
}
20252025
#endif

0 commit comments

Comments
 (0)