# HG changeset patch # User mas01cr # Date 1190107901 0 # Node ID 4d9ea08b2f5fcd8f889c8bda6199b7b868abe2dc # Parent 53616d7dda086e45e2ea7ef3b7973cbea6962f0f Fix bug revealed by test case 0005: L2NORM needs write access to the database. diff -r 53616d7dda08 -r 4d9ea08b2f5f audioDB.cpp --- 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