Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
5bb7e4b9
Commit
5bb7e4b9
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Up the version of the DBD rpc_version and handle the multi cluster logic
related to it.
parent
1d9ce14e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/slurm_protocol_util.c
+6
-2
6 additions, 2 deletions
src/common/slurm_protocol_util.c
src/common/slurmdbd_defs.h
+2
-1
2 additions, 1 deletion
src/common/slurmdbd_defs.h
with
8 additions
and
3 deletions
src/common/slurm_protocol_util.c
+
6
−
2
View file @
5bb7e4b9
...
...
@@ -52,8 +52,10 @@ uint16_t _get_slurm_version(uint32_t rpc_version)
{
uint16_t
version
;
if
(
rpc_version
>=
1
1
)
if
(
rpc_version
>=
1
2
)
version
=
SLURM_PROTOCOL_VERSION
;
else
if
(
rpc_version
>=
11
)
version
=
SLURM_2_5_PROTOCOL_VERSION
;
else
if
(
rpc_version
>=
10
)
version
=
SLURM_2_4_PROTOCOL_VERSION
;
else
...
...
@@ -78,6 +80,7 @@ int check_header_version(header_t * header)
if
(
slurmdbd_conf
)
{
if
((
header
->
version
!=
SLURM_PROTOCOL_VERSION
)
&&
(
header
->
version
!=
SLURM_2_5_PROTOCOL_VERSION
)
&&
(
header
->
version
!=
SLURM_2_4_PROTOCOL_VERSION
)
&&
(
header
->
version
!=
SLURM_2_3_PROTOCOL_VERSION
))
slurm_seterrno_ret
(
SLURM_PROTOCOL_VERSION_ERROR
);
...
...
@@ -140,7 +143,8 @@ int check_header_version(header_t * header)
case
REQUEST_UPDATE_NODE
:
case
REQUEST_UPDATE_PARTITION
:
case
REQUEST_UPDATE_RESERVATION
:
if
((
header
->
version
==
SLURM_2_5_PROTOCOL_VERSION
)
||
if
((
header
->
version
==
SLURM_2_6_PROTOCOL_VERSION
)
||
(
header
->
version
==
SLURM_2_5_PROTOCOL_VERSION
)
||
(
header
->
version
==
SLURM_2_4_PROTOCOL_VERSION
)
||
(
header
->
version
==
SLURM_2_3_PROTOCOL_VERSION
))
break
;
...
...
This diff is collapsed.
Click to expand it.
src/common/slurmdbd_defs.h
+
2
−
1
View file @
5bb7e4b9
...
...
@@ -76,7 +76,8 @@
* communicating with it (e.g. it will not accept messages with a
* version higher than SLURMDBD_VERSION).
*/
#define SLURMDBD_VERSION 11
#define SLURMDBD_VERSION 12
#define SLURMDBD_2_6_VERSION 12
/* 2.6 */
#define SLURMDBD_2_5_VERSION 11
/* 2.5 */
#define SLURMDBD_2_4_VERSION 10
/* 2.4 */
#define SLURMDBD_2_3_VERSION 9
/* 2.3 */
...
...
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