diff options
author | Thomas White <taw@physics.org> | 2021-08-13 10:50:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-06-02 12:15:38 +0200 |
commit | 5cde112fdab9f2913f9207e703322356553a05d1 (patch) | |
tree | 9bcc7fc9ef462f4453ee2e79bc3c4a38d4c413f3 | |
parent | 2d09dfe63742975e39abee6f8c73bc5936d779c8 (diff) |
indexamajig: Don't do ASAP::O stuff unless asked for
-rw-r--r-- | src/im-sandbox.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index a175b3ed..1cc78295 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -1147,17 +1147,19 @@ int create_sandbox(struct index_args *iargs, int n_proc, char *prefix, return 0; } - if ( asapo_group_id != NULL ) { - sb->asapo_group_id = strdup(asapo_group_id); - } else { - sb->asapo_group_id = im_asapo_make_unique_group_id(asapo_endpoint, - asapo_token, - asapo_beamtime, - asapo_path); - } - if ( sb->asapo_group_id == NULL ) { - ERROR("Failed to create ASAP::O group ID.\n"); - return 0; + if ( sb->asapo ) { + if ( asapo_group_id != NULL ) { + sb->asapo_group_id = strdup(asapo_group_id); + } else { + sb->asapo_group_id = im_asapo_make_unique_group_id(asapo_endpoint, + asapo_token, + asapo_beamtime, + asapo_path); + } + if ( sb->asapo_group_id == NULL ) { + ERROR("Failed to create ASAP::O group ID.\n"); + return 0; + } } sb->fds = NULL; |