drop functions

This commit is contained in:
Marco Boss 2022-04-02 13:42:00 +02:00
parent f596b27a97
commit 5880a8ec4f
No known key found for this signature in database
GPG Key ID: 89A3EC33C625C3DF
3 changed files with 11 additions and 6 deletions

View File

@ -121,7 +121,9 @@ run (void *cls,
if (1 < if (1 <
num_partitions) num_partitions)
{ {
if (GNUNET_OK != plugin->setup_partitions (plugin->cls, num_partitions)) if (GNUNET_OK !=
plugin->setup_partitions (plugin->cls,
num_partitions))
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not setup partitions. Dropping default ones again\n"); "Could not setup partitions. Dropping default ones again\n");
@ -139,8 +141,9 @@ run (void *cls,
else if (1 < else if (1 <
num_foreign_servers) num_foreign_servers)
{ {
if (GNUNET_OK != plugin->setup_foreign_servers (plugin->cls, if (GNUNET_OK !=
num_foreign_servers)) plugin->setup_foreign_servers (plugin->cls,
num_foreign_servers))
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not setup shards. Aborting\n"); "Could not setup shards. Aborting\n");

View File

@ -1583,7 +1583,7 @@ BEGIN
); );
EXECUTE FORMAT( EXECUTE FORMAT(
'ALTER FOREIGN TABLE %I OWNER TO %L' 'ALTER FOREIGN TABLE %I OWNER TO %I'
,source_table_name || '_' || shard_suffix ,source_table_name || '_' || shard_suffix
,local_user ,local_user
); );
@ -1698,7 +1698,7 @@ LANGUAGE plpgsql
AS $$ AS $$
BEGIN BEGIN
RAISE NOTICE 'Creating server %s', remote_host; RAISE NOTICE 'Creating server %', remote_host;
EXECUTE FORMAT( EXECUTE FORMAT(
'CREATE SERVER IF NOT EXISTS %I ' 'CREATE SERVER IF NOT EXISTS %I '
@ -1907,6 +1907,7 @@ BEGIN
,'taler-exchange-httpd' ,'taler-exchange-httpd'
); );
END LOOP; END LOOP;
END END
$$; $$;

View File

@ -149,8 +149,9 @@ DROP FUNCTION IF EXISTS create_table_partition;
DROP FUNCTION IF EXISTS create_partitions; DROP FUNCTION IF EXISTS create_partitions;
DROP FUNCTION IF EXISTS detach_default_partitions; DROP FUNCTION IF EXISTS detach_default_partitions;
DROP FUNCTION IF EXISTS drop_default_partitions; DROP FUNCTION IF EXISTS drop_default_partitions;
DROP FUNCTION IF EXISTS master_prepare_sharding; DROP FUNCTION IF EXISTS prepare_sharding;
DROP FUNCTION IF EXISTS create_foreign_table; DROP FUNCTION IF EXISTS create_foreign_table;
DROP FUNCTION IF EXISTS create_foreign_servers;
DROP FUNCTION IF EXISTS create_shard_server; DROP FUNCTION IF EXISTS create_shard_server;