Mercurial > hg > audiodb
comparison insert.cpp @ 321:da2272e029b3 large_adb
Added --adb_feature_root=path filename prefix for locating LARGE_ADB features with relative paths at QUERY time. Also added convenience argument --adb_root=path prefix for -d database command option.
author | mas01mc |
---|---|
date | Thu, 21 Aug 2008 19:16:21 +0000 |
parents | a995e5ad999a |
children |
comparison
equal
deleted
inserted
replaced
320:a995e5ad999a | 321:da2272e029b3 |
---|---|
490 // Copy the header back to the database | 490 // Copy the header back to the database |
491 memcpy (db, dbH, sizeof(dbTableHeaderT)); | 491 memcpy (db, dbH, sizeof(dbTableHeaderT)); |
492 } | 492 } |
493 } | 493 } |
494 // CLEAN UP | 494 // CLEAN UP |
495 munmap(indata,statbuf.st_size); | 495 if(indata) |
496 close(infid); | 496 munmap(indata,statbuf.st_size); |
497 if(infid>0) | |
498 close(infid); | |
497 } while(!filesIn->eof()); | 499 } while(!filesIn->eof()); |
498 | 500 |
499 VERB_LOG(0, "%s %s %u vectors %ju bytes.\n", COM_BATCHINSERT, dbName, totalVectors, (intmax_t) (totalVectors * dbH->dim * sizeof(double))); | 501 VERB_LOG(0, "%s %s %u vectors %ju bytes.\n", COM_BATCHINSERT, dbName, totalVectors, (intmax_t) (totalVectors * dbH->dim * sizeof(double))); |
500 | 502 |
501 delete [] thisPowerFileName; | 503 delete [] thisPowerFileName; |