Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
mpim-sw
libcdi
Commits
52f476eb
Commit
52f476eb
authored
11 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Extend taxisUnpack to override checking of ID restoration.
parent
5998259c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/resource_unpack.c
+1
-1
1 addition, 1 deletion
src/resource_unpack.c
src/taxis.c
+3
-2
3 additions, 2 deletions
src/taxis.c
src/taxis.h
+1
-1
1 addition, 1 deletion
src/taxis.h
with
5 additions
and
4 deletions
src/resource_unpack.c
+
1
−
1
View file @
52f476eb
...
...
@@ -54,7 +54,7 @@ void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
break
;
case
TAXIS
:
taxisUnpack
(
unpackBuffer
,
unpackBufferSize
,
&
unpackBufferPos
,
nspTarget
,
context
);
nspTarget
,
context
,
1
);
break
;
case
INSTITUTE
:
instituteUnpack
(
unpackBuffer
,
unpackBufferSize
,
&
unpackBufferPos
,
...
...
This diff is collapsed.
Click to expand it.
src/taxis.c
+
3
−
2
View file @
52f476eb
...
...
@@ -1317,7 +1317,7 @@ taxisGetPackSize(void *p, void *context)
int
taxisUnpack
(
char
*
unpackBuffer
,
int
unpackBufferSize
,
int
*
unpackBufferPos
,
int
nspTarget
,
void
*
context
)
int
nspTarget
,
void
*
context
,
int
checkForSameID
)
{
taxis_t
*
taxisP
;
int
intBuffer
[
taxisNint
];
...
...
@@ -1335,7 +1335,8 @@ taxisUnpack(char * unpackBuffer, int unpackBufferSize, int * unpackBufferPos,
taxisP
=
taxisNewEntry
();
if
(
!
taxisP
)
Error
(
"No memory"
);
xassert
(
namespaceAdaptKey
(
intBuffer
[
0
],
nspTarget
)
==
taxisP
->
self
);
xassert
(
!
checkForSameID
||
namespaceAdaptKey
(
intBuffer
[
0
],
nspTarget
)
==
taxisP
->
self
);
taxisP
->
used
=
intBuffer
[
1
];
taxisP
->
type
=
intBuffer
[
2
];
...
...
This diff is collapsed.
Click to expand it.
src/taxis.h
+
1
−
1
View file @
52f476eb
...
...
@@ -35,7 +35,7 @@ double vtime2timeval(int vdate, int vtime, taxis_t *taxis);
int
taxisUnpack
(
char
*
unpackBuffer
,
int
unpackBufferSize
,
int
*
unpackBufferPos
,
int
nspTarget
,
void
*
context
);
int
nspTarget
,
void
*
context
,
int
checkForSameID
);
#endif
/* _TAXIS_H */
/*
...
...
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