# HG changeset patch # User mas01cr # Date 1230116213 0 # Node ID ac9bf14f70714fd8c1a6ca6dcaf7bbd219947987 # Parent b75c1e8260581b9fab07c724027dcbef4761c9d6 audiodb_set_up_dbpointers() is a better name than audiodb_set_up_db(). diff -r b75c1e826058 -r ac9bf14f7071 query.cpp --- a/query.cpp Wed Dec 24 10:56:49 2008 +0000 +++ b/query.cpp Wed Dec 24 10:56:53 2008 +0000 @@ -481,10 +481,7 @@ return 0; } -// FIXME: this is not the right name; we're not actually setting up -// the database, but copying various bits of it out of mmap()ed tables -// in order to reduce seeks. -static int audiodb_set_up_db(adb_t *adb, adb_query_spec_t *spec, adb_qpointers_internal_t *dbpointers) { +static int audiodb_set_up_dbpointers(adb_t *adb, adb_query_spec_t *spec, adb_qpointers_internal_t *dbpointers) { uint32_t nvectors = adb->header->length / (adb->header->dim * sizeof(double)); uint32_t sequence_length = spec->qid.sequence_length; @@ -603,7 +600,7 @@ // FIXME: we more than likely don't need very much of the database // so make a new method to build these values per-track or, even better, per-point if( !( dbH->flags & O2_FLAG_LARGE_ADB) ) - if(audiodb_set_up_db(adb, spec, &dbpointers)) { + if(audiodb_set_up_dbpointers(adb, spec, &dbpointers)) { error("failed to set up db"); } @@ -709,7 +706,7 @@ error("failed to set up qpointers"); } - if(audiodb_set_up_db(adb, spec, &dbpointers)) { + if(audiodb_set_up_dbpointers(adb, spec, &dbpointers)) { error("failed to set up db"); }