Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
fde9641f
Commit
fde9641f
authored
Jun 04, 2019
by
Uwe Schulzweida
Browse files
grb_read_next_record: restrict workerCount to number of records.
parent
2b4abb38
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grb_read.c
View file @
fde9641f
...
...
@@ -199,9 +199,11 @@ void grb_read_next_record(stream_t *streamptr, int recID, int memtype, void *dat
{
bool
jobFound
=
false
;
const
int
workerCount
=
streamptr
->
numWorker
;
int
workerCount
=
streamptr
->
numWorker
;
if
(
workerCount
>
0
)
{
if
(
workerCount
>
streamptr
->
tsteps
[
0
].
nrecs
)
workerCount
=
streamptr
->
tsteps
[
0
].
nrecs
;
AsyncManager
*
jobManager
=
(
AsyncManager
*
)
streamptr
->
jobManager
;
JobDescriptor
*
jobs
=
(
JobDescriptor
*
)
streamptr
->
jobs
;
...
...
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