Mercurial > hg > audiodb
comparison soap.cpp @ 313:f9dde18f556a
Check for index-exists on WS --load_index and exit if it does not. Revert unmap_tables because cleanup() did it fine, but there is a memory leak in ws_query calls.
author | mas01mc |
---|---|
date | Sat, 09 Aug 2008 15:46:42 +0000 |
parents | 435ffdaecae9 |
children | b671a46873c2 |
comparison
equal
deleted
inserted
replaced
312:00cb98315f8c | 313:f9dde18f556a |
---|---|
250 soap_print_fault(&soap, stderr); | 250 soap_print_fault(&soap, stderr); |
251 else | 251 else |
252 { | 252 { |
253 fprintf(stderr, "Socket connection successful: master socket = %d\n", m); | 253 fprintf(stderr, "Socket connection successful: master socket = %d\n", m); |
254 // Make a global Web Services LSH Index (SINGLETON) | 254 // Make a global Web Services LSH Index (SINGLETON) |
255 if(WS_load_index && dbName && !index_exists(dbName, radius, sequenceLength)){ | |
256 error("Can't find requested index file:", index_get_name(dbName,radius,sequenceLength)); | |
257 } | |
255 if(WS_load_index && dbName && index_exists(dbName, radius, sequenceLength)){ | 258 if(WS_load_index && dbName && index_exists(dbName, radius, sequenceLength)){ |
256 char* indexName = index_get_name(dbName, radius, sequenceLength); | 259 char* indexName = index_get_name(dbName, radius, sequenceLength); |
257 fprintf(stderr, "Loading LSH hashtables: %s...\n", indexName); | 260 fprintf(stderr, "Loading LSH hashtables: %s...\n", indexName); |
258 lsh = new LSH(indexName, true); | 261 lsh = new LSH(indexName, true); |
259 assert(lsh); | 262 assert(lsh); |