From: erickson Date: Fri, 4 Aug 2006 16:25:23 +0000 (+0000) Subject: put time into resource to ensure uniqueness accross machines X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e43b7646086a0acc95d28773e6ee35646d3948dc;p=working%2FOpenSRF.git put time into resource to ensure uniqueness accross machines git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@754 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/gateway/osrf_json_gateway.c b/src/gateway/osrf_json_gateway.c index 0bebfad..598cddb 100644 --- a/src/gateway/osrf_json_gateway.c +++ b/src/gateway/osrf_json_gateway.c @@ -54,7 +54,12 @@ static void* osrf_json_gateway_create_config( apr_pool_t* p, server_rec* s) { static void osrf_json_gateway_child_init(apr_pool_t *p, server_rec *s) { char* cfg = osrf_json_gateway_config_file; - if( ! osrf_system_bootstrap_client( cfg, CONFIG_CONTEXT ) ) { + char buf[32]; + memset(buf, 0x0, 32); + int t = time(NULL); + snprintf(buf, 32, "%d", t); + + if( ! osrfSystemBootstrapClientResc( cfg, CONFIG_CONTEXT, buf ) ) { ap_log_error( APLOG_MARK, APLOG_ERR, 0, s, "Unable to Bootstrap OpenSRF Client with config %s..", cfg); return;