diff options
author | Dwight <dmerriman@gmail.com> | 2009-03-13 11:56:28 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-03-13 11:56:28 -0400 |
commit | c02272c31d14fda3bc5863f6e50ac48f3c611be4 (patch) | |
tree | 5d39c6a7b422b299ab6d78345b6315b11abde501 /db/recstore.h | |
parent | f1ca868a269b78db93c314d4ba07f4fc4f590bff (diff) | |
download | mongo-c02272c31d14fda3bc5863f6e50ac48f3c611be4.tar.gz |
for new recstore, have a separate datafile for each index
Diffstat (limited to 'db/recstore.h')
-rw-r--r-- | db/recstore.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/recstore.h b/db/recstore.h index 2142dea2687..de570a84a2f 100644 --- a/db/recstore.h +++ b/db/recstore.h @@ -30,12 +30,16 @@ class BasicRecStore { };
public:
+ BasicRecStore(int _fileNumber) : fileNumber(_fileNumber) { }
~BasicRecStore();
void init(const char *fn, unsigned recsize);
fileofs insert(const char *buf, unsigned len);
void update(fileofs o, const char *buf, unsigned len);
void remove(fileofs o, unsigned len);
void get(fileofs o, char *buf, unsigned len);
+
+ int fileNumber; // this goes in DiskLoc::a
+
private:
void writeHeader();
|