Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
642a9db7
Commit
642a9db7
authored
Jul 01, 2016
by
Shane Snyder
Browse files
bug fix in lustre module sort
parent
ec0fcc53
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-lustre.c
View file @
642a9db7
...
...
@@ -293,8 +293,8 @@ static void lustre_set_rec_ref_pointers(void *rec_ref_p)
/* compare function for sorting file records by descending rank */
static
int
lustre_record_compare
(
const
void
*
a_p
,
const
void
*
b_p
)
{
const
struct
lustre_record_ref
*
a
=
a_p
;
const
struct
lustre_record_ref
*
b
=
b_p
;
const
struct
lustre_record_ref
*
a
=
*
((
struct
lustre_record_ref
**
)
a_p
)
;
const
struct
lustre_record_ref
*
b
=
*
((
struct
lustre_record_ref
**
)
b_p
)
;
if
(
a
->
record
->
base_rec
.
rank
<
b
->
record
->
base_rec
.
rank
)
return
1
;
...
...
@@ -358,7 +358,7 @@ int sort_lustre_records()
qsort
(
lustre_runtime
->
record_ref_array
,
lustre_runtime
->
record_count
,
sizeof
(
struct
lustre_record_ref
),
sizeof
(
struct
lustre_record_ref
*
),
lustre_record_compare
);
...
...
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