Mercurial > hg > audiodb
comparison audioDB.cpp @ 474:f9d86b1db21c
Fixed memory leaks, added WS --no_unit_norming, and removed capping of LSH_N_POINT_BITS to 15 bits, instead allow any number of bits to encode points, remaining bits encode tracks
author | mas01mc |
---|---|
date | Fri, 09 Jan 2009 18:05:32 +0000 |
parents | 51d02229288f |
children | 342822c2d49a |
comparison
equal
deleted
inserted
replaced
471:add65705e655 | 474:f9d86b1db21c |
---|---|
38 | 38 |
39 // Perform database prefix substitution | 39 // Perform database prefix substitution |
40 if(dbName && adb_root) | 40 if(dbName && adb_root) |
41 prefix_name((char** const)&dbName, adb_root); | 41 prefix_name((char** const)&dbName, adb_root); |
42 | 42 |
43 if(O2_ACTION(COM_SERVER)) | 43 if(O2_ACTION(COM_SERVER)){ |
44 #ifdef LIBRARY | 44 #ifdef LIBRARY |
45 ; | 45 ; |
46 #else | 46 #else |
47 startServer(); | 47 startServer(); |
48 if(SERVER_LSH_INDEX_SINGLETON) | |
49 delete lsh; | |
48 #endif | 50 #endif |
49 | 51 } |
50 else if(O2_ACTION(COM_CREATE)) | 52 else if(O2_ACTION(COM_CREATE)) |
51 create(dbName); | 53 create(dbName); |
52 | 54 |
53 else if(O2_ACTION(COM_INSERT)) | 55 else if(O2_ACTION(COM_INSERT)) |
54 insert(dbName, inFile); | 56 insert(dbName, inFile); |