Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b5763ced
Commit
b5763ced
authored
11 years ago
by
Robert Haas
Browse files
Options
Downloads
Patches
Plain Diff
test_shm_mq: Fix checks for negative queue size.
Noted while addressing compiler warnings pointed out on pgsql-hackers.
parent
d89746c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/test_shm_mq/setup.c
+3
-3
3 additions, 3 deletions
contrib/test_shm_mq/setup.c
contrib/test_shm_mq/test_shm_mq.h
+1
-1
1 addition, 1 deletion
contrib/test_shm_mq/test_shm_mq.h
with
4 additions
and
4 deletions
contrib/test_shm_mq/setup.c
+
3
−
3
View file @
b5763ced
...
@@ -29,7 +29,7 @@ typedef struct
...
@@ -29,7 +29,7 @@ typedef struct
BackgroundWorkerHandle
*
handle
[
FLEXIBLE_ARRAY_MEMBER
];
BackgroundWorkerHandle
*
handle
[
FLEXIBLE_ARRAY_MEMBER
];
}
worker_state
;
}
worker_state
;
static
void
setup_dynamic_shared_memory
(
u
int64
queue_size
,
int
nworkers
,
static
void
setup_dynamic_shared_memory
(
int64
queue_size
,
int
nworkers
,
dsm_segment
**
segp
,
dsm_segment
**
segp
,
test_shm_mq_header
**
hdrp
,
test_shm_mq_header
**
hdrp
,
shm_mq
**
outp
,
shm_mq
**
inp
);
shm_mq
**
outp
,
shm_mq
**
inp
);
...
@@ -45,7 +45,7 @@ static bool check_worker_status(worker_state *wstate);
...
@@ -45,7 +45,7 @@ static bool check_worker_status(worker_state *wstate);
* for a test run.
* for a test run.
*/
*/
void
void
test_shm_mq_setup
(
u
int64
queue_size
,
int32
nworkers
,
dsm_segment
**
segp
,
test_shm_mq_setup
(
int64
queue_size
,
int32
nworkers
,
dsm_segment
**
segp
,
shm_mq_handle
**
output
,
shm_mq_handle
**
input
)
shm_mq_handle
**
output
,
shm_mq_handle
**
input
)
{
{
dsm_segment
*
seg
;
dsm_segment
*
seg
;
...
@@ -86,7 +86,7 @@ test_shm_mq_setup(uint64 queue_size, int32 nworkers, dsm_segment **segp,
...
@@ -86,7 +86,7 @@ test_shm_mq_setup(uint64 queue_size, int32 nworkers, dsm_segment **segp,
* the number of workers, plus one.
* the number of workers, plus one.
*/
*/
static
void
static
void
setup_dynamic_shared_memory
(
u
int64
queue_size
,
int
nworkers
,
setup_dynamic_shared_memory
(
int64
queue_size
,
int
nworkers
,
dsm_segment
**
segp
,
test_shm_mq_header
**
hdrp
,
dsm_segment
**
segp
,
test_shm_mq_header
**
hdrp
,
shm_mq
**
outp
,
shm_mq
**
inp
)
shm_mq
**
outp
,
shm_mq
**
inp
)
{
{
...
...
This diff is collapsed.
Click to expand it.
contrib/test_shm_mq/test_shm_mq.h
+
1
−
1
View file @
b5763ced
...
@@ -35,7 +35,7 @@ typedef struct
...
@@ -35,7 +35,7 @@ typedef struct
}
test_shm_mq_header
;
}
test_shm_mq_header
;
/* Set up dynamic shared memory and background workers for test run. */
/* Set up dynamic shared memory and background workers for test run. */
extern
void
test_shm_mq_setup
(
u
int64
queue_size
,
int32
nworkers
,
extern
void
test_shm_mq_setup
(
int64
queue_size
,
int32
nworkers
,
dsm_segment
**
seg
,
shm_mq_handle
**
output
,
dsm_segment
**
seg
,
shm_mq_handle
**
output
,
shm_mq_handle
**
input
);
shm_mq_handle
**
input
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment