Skip to content
Snippets Groups Projects
Commit 6791f79b authored by Danny Auble's avatar Danny Auble
Browse files

fixed support for 2.1

parent a81c213c
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@
/* slurm protocol header defines, based upon config.h, 16 bits */
/* A new SLURM_PROTOCOL_VERSION needs to be made each time the version
* changes so the slurmdbd can talk all versions for update messages.
* In slurm_protocol_util.h init_header(), and check_header_version()
* In slurm_protocol_util.h check_header_version(), and init_header()
* need to be updated also when changes are added */
#define SLURM_PROTOCOL_VERSION ((SLURM_API_MAJOR << 8) | SLURM_API_AGE)
#define SLURM_2_0_PROTOCOL_VERSION ((20 << 8) | 0)
......
......@@ -57,6 +57,7 @@ int check_header_version(header_t * header)
{
if(slurmdbd_conf) {
if (header->version != SLURM_PROTOCOL_VERSION
&& header->version != SLURM_2_0_PROTOCOL_VERSION
&& header->version != SLURM_1_3_PROTOCOL_VERSION)
slurm_seterrno_ret(SLURM_PROTOCOL_VERSION_ERROR);
} else if (header->version != SLURM_PROTOCOL_VERSION)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment