diff audioDB.cpp @ 50:4d9ea08b2f5f

Fix bug revealed by test case 0005: L2NORM needs write access to the database.
author mas01cr
date Tue, 18 Sep 2007 09:31:41 +0000
parents bc84daa6c362
children 944f05e65a58
line wrap: on
line diff
--- a/audioDB.cpp	Tue Sep 18 09:25:10 2007 +0000
+++ b/audioDB.cpp	Tue Sep 18 09:31:41 2007 +0000
@@ -971,7 +971,7 @@
 }
 
 void audioDB::l2norm(const char* dbName){
-  initTables(dbName, 0, 0);
+  initTables(dbName, true, 0);
   if(dbH->length>0){
     unsigned numVectors = dbH->length/(sizeof(double)*dbH->dim);
     unitNormAndInsertL2(dataBuf, dbH->dim, numVectors, 0); // No append