Skip to content

Commit 55c7d81

Browse files
author
Alexander Zhdanov
committed
Add small fixes after the TS porting branch update
1 parent ac94102 commit 55c7d81

File tree

3 files changed

+30
-17
lines changed

3 files changed

+30
-17
lines changed

builds/install/misc/replication.conf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ database
1414
# Pattern (regular expression) that defines what tables must be included into
1515
# replication. By default, all tables are replicated.
1616
#
17-
# include_filter =
17+
# include_filter =
1818

1919
# Pattern (regular expression) that defines what tables must be excluded from
2020
# replication. By default, all tables are replicated.
2121
#
22-
# exclude_filter =
22+
# exclude_filter =
2323

2424
# Boolean parameters describing how replication errors must be handled.
2525
#
@@ -42,20 +42,20 @@ database
4242

4343
# Directory to store replication journal files.
4444
#
45-
# journal_directory =
45+
# journal_directory =
4646

4747
# Prefix for replication journal file names. It will be automatically suffixed
4848
# with an ordinal sequential number. If not specified, database filename
4949
# (without path) is used as a prefix.
5050
#
51-
# journal_file_prefix =
51+
# journal_file_prefix =
5252

5353
# Maximum allowed size for a single replication segment.
5454
#
5555
# journal_segment_size = 16777216 # 16MB
5656

5757
# Maximum allowed number of full replication segments. Once this limit is reached,
58-
# the replication process is temporarily delayed to allow the archiving to catch up.
58+
# the replication process is temporarily delayed to allow the archiving to catch up.
5959
# If any of the full segments is not archived during one minute,
6060
# the replication fails with an error.
6161
#
@@ -76,7 +76,7 @@ database
7676
# Directory to store archived replication segments.
7777
# It also defines the $(archpathname) substitution macro (see below).
7878
#
79-
# journal_archive_directory =
79+
# journal_archive_directory =
8080

8181
# Program (complete command line with arguments) that is executed when some
8282
# replication segment gets full and needs archiving.
@@ -97,7 +97,7 @@ database
9797
# or
9898
# Windows: "copy $(pathname) $(archivepathname)"
9999
#
100-
# journal_archive_command =
100+
# journal_archive_command =
101101

102102
# Timeout, in seconds, to wait until incomplete segment is scheduled for archiving.
103103
# It allows to minimize the replication gap if the database is modified rarely.
@@ -121,7 +121,7 @@ database
121121
#
122122
# Multiple entries are allowed (for different synchronous replicas).
123123
#
124-
# sync_replica =
124+
# sync_replica =
125125

126126

127127
### REPLICA SIDE SETTINGS
@@ -135,13 +135,13 @@ database
135135

136136
# Directory to search for the journal files to be replicated.
137137
#
138-
# journal_source_directory =
138+
# journal_source_directory =
139139

140140
# Filter to limit replication to the particular source database (based on its GUID).
141141
# Expected format: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
142142
# Note that double quotes are mandatory, as well as curly braces.
143143
#
144-
# source_guid =
144+
# source_guid =
145145

146146
# If enabled, replication.log contains the detailed log of operations performed
147147
# by the replication server. Otherwise (by default), only errors and warnings are logged.

src/dsql/parse-conflicts.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
101 shift/reduce conflicts, 56 reduce/reduce conflicts.
1+
121 shift/reduce conflicts, 23 reduce/reduce conflicts.

src/dsql/parse.y

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,21 +1557,22 @@ create_clause
15571557
node->createIfNotExistsOnly = $2;
15581558
$$ = node;
15591559
}
1560-
| unique_opt order_direction INDEX if_not_exists_opt symbol_index_name ON simple_table_name
1560+
| unique_opt order_direction INDEX if_not_exists_opt symbol_index_name index_active_opt ON simple_table_name
15611561
{
15621562
const auto node = newNode<CreateIndexNode>(*$5);
1563+
node->active = $6;
15631564
node->unique = $1;
15641565
node->descending = $2;
15651566
node->createIfNotExistsOnly = $4;
1566-
node->relation = $7;
1567+
node->relation = $8;
15671568
$$ = node;
15681569
}
1569-
index_definition(static_cast<CreateIndexNode*>($8)) tablespace_name_clause_opt
1570+
index_definition(static_cast<CreateIndexNode*>($9)) tablespace_name_clause_opt
15701571
{
1571-
if ($10)
1572-
static_cast<CreateIndexNode*>($8)->tableSpace = *$10;
1572+
if ($11)
1573+
static_cast<CreateIndexNode*>($9)->tableSpace = *$11;
15731574

1574-
$$ = $8;
1575+
$$ = $9;
15751576
}
15761577
| FUNCTION if_not_exists_opt function_clause
15771578
{
@@ -1777,6 +1778,12 @@ alter_exception_clause
17771778

17781779
// CREATE INDEX
17791780

1781+
%type <boolVal> index_active_opt
1782+
index_active_opt
1783+
: /* nothing */ { $$ = true; }
1784+
| index_active { $$ = $1; }
1785+
;
1786+
17801787
%type <boolVal> unique_opt
17811788
unique_opt
17821789
: /* nothing */ { $$ = false; }
@@ -4748,6 +4755,12 @@ alter_index_clause
47484755
}
47494756
;
47504757

4758+
%type <boolVal> index_active
4759+
index_active
4760+
: ACTIVE { $$ = true; }
4761+
| INACTIVE { $$ = false; }
4762+
;
4763+
47514764
%type <ddlNode> alter_udf_clause
47524765
alter_udf_clause
47534766
: symbol_UDF_name entry_op module_op

0 commit comments

Comments
 (0)