From 5cde112fdab9f2913f9207e703322356553a05d1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Aug 2021 10:50:16 +0200 Subject: indexamajig: Don't do ASAP::O stuff unless asked for --- src/im-sandbox.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/im-sandbox.c') 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; -- cgit v1.2.3