mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Refactoring ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Remove helio references from documentdb Remove helio references from documentdb_distributed ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request removes references to "helio" and replaces them with "documentdb" in the sources of `documentdb` and `documentdb_distributed`. - `metadata_cache.h` and `metadata_cache.c`: Replaced "Helio" with "DocumentDB" in variable names and function names. - `pgmongo.c`: Updated include statements and function calls to use "documentdb" instead of "helio". - `planner.c`: Updated planner function and related calls to use "DocumentDBApiPlanner". - Moved several header files from `helio_*` to `documentdb_*` naming convention without code changes. - `commands_common.c` and `create_indexes.c`: Updated function calls and variable names to use "DocumentDB" instead of "Helio".
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
/*-------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*
|
|
* src/documentdb_distributed_init.c
|
|
*
|
|
* Initialization of the shared library initialization for distribution for Hleio API.
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#include <postgres.h>
|
|
#include <miscadmin.h>
|
|
#include <utils/guc.h>
|
|
|
|
#include "helio_distributed_init.h"
|
|
|
|
|
|
/* --------------------------------------------------------- */
|
|
/* GUCs and default values */
|
|
/* --------------------------------------------------------- */
|
|
|
|
#define DEFAULT_ENABLE_METADATA_REFERENCE_SYNC true
|
|
bool EnableMetadataReferenceTableSync = DEFAULT_ENABLE_METADATA_REFERENCE_SYNC;
|
|
|
|
#define DEFAULT_ENABLE_SHARD_REBALANCER false
|
|
bool EnableShardRebalancer = DEFAULT_ENABLE_SHARD_REBALANCER;
|
|
|
|
/* --------------------------------------------------------- */
|
|
/* Top level exports */
|
|
/* --------------------------------------------------------- */
|
|
|
|
/*
|
|
* Initializes core configurations pertaining to documentdb distributed.
|
|
*/
|
|
void
|
|
InitDocumentDBDistributedConfigurations(const char *prefix)
|
|
{
|
|
DefineCustomBoolVariable(
|
|
psprintf("%s.enable_metadata_reference_table_sync", prefix),
|
|
gettext_noop(
|
|
"Determines whether or not to enable metadata reference table syncs."),
|
|
NULL, &EnableMetadataReferenceTableSync, DEFAULT_ENABLE_METADATA_REFERENCE_SYNC,
|
|
PGC_USERSET, 0, NULL, NULL, NULL);
|
|
|
|
DefineCustomBoolVariable(
|
|
psprintf("%s.enable_shard_rebalancer_apis", prefix),
|
|
gettext_noop(
|
|
"Determines whether or not to enable shard rebalancer APIs."),
|
|
NULL, &EnableShardRebalancer, DEFAULT_ENABLE_SHARD_REBALANCER,
|
|
PGC_USERSET, 0, NULL, NULL, NULL);
|
|
}
|