Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8868bd

Browse files
committed
fix some gcc-ism's
1 parentccb3090 commitb8868bd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎multimaster--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ CREATE FUNCTION mtm.referee_poll(xid bigint) RETURNS bigint
103103
AS'MODULE_PATHNAME','mtm_referee_poll'
104104
LANGUAGE C;
105105

106-
CREATETABLEIF NOT EXISTSmtm.local_tables(rel_schematext, rel_nametext,primary key(rel_schema, rel_name));
106+
CREATETABLEIF NOT EXISTSmtm.local_tables(rel_schemaname, rel_namename,primary key(rel_schema, rel_name));
107107

108108
CREATE OR REPLACEFUNCTIONmtm.alter_sequences() RETURNSbooleanAS
109109
$$

‎multimaster.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,14 +914,15 @@ MtmResetTransaction()
914914
x->gid[0]='\0';
915915
}
916916

917-
917+
#if0
918918
staticconstchar*constisoLevelStr[]=
919919
{
920920
"read uncommitted",
921921
"read committed",
922922
"repeatable read",
923923
"serializable"
924924
};
925+
#endif
925926

926927
boolMtmTransIsActive(void)
927928
{
@@ -2589,8 +2590,8 @@ void MtmMakeTableLocal(char const* schema, char const* name)
25892590

25902591

25912592
typedefstruct {
2592-
textschema;
2593-
textname;
2593+
NameDataschema;
2594+
NameDataname;
25942595
}MtmLocalTablesTuple;
25952596

25962597
staticvoidMtmLoadLocalTables(void)
@@ -2610,7 +2611,7 @@ static void MtmLoadLocalTables(void)
26102611
while (HeapTupleIsValid(tuple=systable_getnext(scan)))
26112612
{
26122613
MtmLocalTablesTuple*t= (MtmLocalTablesTuple*)GETSTRUCT(tuple);
2613-
MtmMakeTableLocal(text_to_cstring(&t->schema),text_to_cstring(&t->name));
2614+
MtmMakeTableLocal(NameStr(t->schema),NameStr(t->name));
26142615
}
26152616

26162617
systable_endscan(scan);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp