aboutsummaryrefslogtreecommitdiff
path: root/src/im-sandbox.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-08-13 10:50:16 +0200
committerThomas White <taw@physics.org>2022-06-02 12:15:38 +0200
commit5cde112fdab9f2913f9207e703322356553a05d1 (patch)
tree9bcc7fc9ef462f4453ee2e79bc3c4a38d4c413f3 /src/im-sandbox.c
parent2d09dfe63742975e39abee6f8c73bc5936d779c8 (diff)
indexamajig: Don't do ASAP::O stuff unless asked for
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r--src/im-sandbox.c24
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;