Mercurial > hg > audiodb
diff audioDB.h @ 192:5f3d260ba71d no-big-mmap
Create and status of huge databases works.
dump also works, but is as yet untested beyond the 4GB limit.
author | mas01cr |
---|---|
date | Mon, 19 Nov 2007 18:37:12 +0000 |
parents | c22d53219112 |
children |
line wrap: on
line diff
--- a/audioDB.h Mon Nov 19 17:19:46 2007 +0000 +++ b/audioDB.h Mon Nov 19 18:37:12 2007 +0000 @@ -103,13 +103,13 @@ // scale to really large collections easily but it works around the // problem. Expanding to 64 bits will of course need a change in // file format version. -- CSR, 2007-10-05 - uint32_t length; - uint32_t fileTableOffset; - uint32_t trackTableOffset; - uint32_t dataOffset; - uint32_t l2normTableOffset; - uint32_t timesTableOffset; - uint32_t dbSize; + off_t length; + off_t fileTableOffset; + off_t trackTableOffset; + off_t dataOffset; + off_t l2normTableOffset; + off_t timesTableOffset; + off_t dbSize; } dbTableHeaderT, *dbTableHeaderPtr; @@ -148,13 +148,13 @@ size_t fileTableLength; size_t trackTableLength; - size_t dataBufLength; + off_t dataBufLength; size_t timesTableLength; size_t l2normTableLength; // Flags and parameters unsigned verbosity; // how much do we want to know? - unsigned size; // given size (for creation) + off_t size; // given size (for creation) unsigned queryType; // point queries default unsigned pointNN; // how many point NNs ? unsigned trackNN; // how many track NNs ?