put time into resource to ensure uniqueness accross machines
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 4 Aug 2006 16:25:23 +0000 (16:25 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 4 Aug 2006 16:25:23 +0000 (16:25 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@754 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/osrf_json_gateway.c

index 0bebfad..598cddb 100644 (file)
@@ -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;