fill **data in slave data_init
authorMiloš Mulač <mulac@civ.zcu.cz>
Wed, 12 Oct 2005 09:55:07 +0000 (09:55 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Wed, 12 Oct 2005 09:55:07 +0000 (09:55 +0000)
org.glite.jp.index/src/bones_server.c

index d4376b6..0803b12 100644 (file)
@@ -199,6 +199,7 @@ static int data_init(void **data)
                printf("[%d] slave_init(): DB error: %s (%s)\n",getpid(),ctx->error->desc,ctx->error->source);
                return -1;
        }
+
        private->soap = soap_new();
        printf("[%d] slave started\n",getpid());
 
@@ -219,6 +220,7 @@ static int data_init(void **data)
                                break;
                        case ENOENT:
                                // no more feeds to initialize
+                               *data = (void *) private;
                                return 0;
                        default:
                                // error during locking