Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0b874f01
Commit
0b874f01
authored
Apr 02, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up compile errors and warnings, cf Billy Allie's
complaints (and some of my own).
parent
b5b5852c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+6
-7
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/shmem.c
+1
-2
src/include/storage/shmem.h
src/include/storage/shmem.h
+2
-1
No files found.
src/backend/commands/vacuum.c
View file @
0b874f01
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.9
7 1999/03/28 20:32:01 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.9
8 1999/04/02 04:51:04 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -66,7 +66,6 @@ static Portal vc_portal;
static
int
MESSAGE_LEVEL
;
/* message level */
static
TransactionId
XmaxRecent
;
extern
void
GetXmaxRecent
(
TransactionId
*
xid
);
#define swapLong(a,b) {long tmp; tmp=a; a=b; b=tmp;}
#define swapInt(a,b) {int tmp; tmp=a; a=b; b=tmp;}
...
...
@@ -2421,16 +2420,16 @@ vc_find_eq(void *bot, int nelem, int size, void *elm,
}
if
(
last_move
==
true
)
{
res
=
compar
(
elm
,
bot
+
last
*
size
);
res
=
compar
(
elm
,
(
void
*
)((
char
*
)
bot
+
last
*
size
)
);
if
(
res
>
0
)
return
NULL
;
if
(
res
==
0
)
return
bot
+
last
*
size
;
return
(
void
*
)((
char
*
)
bot
+
last
*
size
)
;
last_move
=
false
;
}
res
=
compar
(
elm
,
bot
+
celm
*
size
);
res
=
compar
(
elm
,
(
void
*
)((
char
*
)
bot
+
celm
*
size
)
);
if
(
res
==
0
)
return
bot
+
celm
*
size
;
return
(
void
*
)((
char
*
)
bot
+
celm
*
size
)
;
if
(
res
<
0
)
{
if
(
celm
==
0
)
...
...
@@ -2445,7 +2444,7 @@ vc_find_eq(void *bot, int nelem, int size, void *elm,
return
NULL
;
last
=
last
-
celm
-
1
;
bot
=
bot
+
(
celm
+
1
)
*
size
;
bot
=
(
void
*
)((
char
*
)
bot
+
(
celm
+
1
)
*
size
)
;
celm
=
(
last
+
1
)
/
2
;
first_move
=
true
;
}
...
...
src/backend/storage/ipc/shmem.c
View file @
0b874f01
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.3
8 1999/03/28 20:32:22 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmem.c,v 1.3
9 1999/04/02 04:51:03 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -737,5 +737,4 @@ GetXmaxRecent(TransactionId *XmaxRecent)
SpinRelease
(
ShmemIndexLock
);
elog
(
ERROR
,
"GetXmaxRecent: ShmemIndex corrupted"
);
return
NULL
;
}
src/include/storage/shmem.h
View file @
0b874f01
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: shmem.h,v 1.1
5 1999/02/13 23:22:10 momjian
Exp $
* $Id: shmem.h,v 1.1
6 1999/04/02 04:51:05 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -71,6 +71,7 @@ extern SHMEM_OFFSET ShmemPIDDestroy(int pid);
extern
long
*
ShmemInitStruct
(
char
*
name
,
unsigned
long
size
,
bool
*
foundPtr
);
extern
bool
TransactionIdIsInProgress
(
TransactionId
xid
);
extern
void
GetXmaxRecent
(
TransactionId
*
XmaxRecent
);
typedef
int
TableID
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment