0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

alignment

This commit is contained in:
Dwight 2007-11-27 13:40:08 -05:00
parent cbf7e7db04
commit fd2993de59
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,9 @@
class Cursor;
#pragma pack(push)
#pragma pack(1)
class Namespace {
public:
Namespace(const char *ns) {
@ -97,6 +100,8 @@ private:
DiskLoc _alloc(int len);
};
#pragma pack(pop)
class NamespaceIndex {
friend class NamespaceCursor;
public:

View File

@ -69,6 +69,8 @@ public:
nodes = (Node *) buf;
assert(nodes[n-1].hash == 0);
assert(nodes[0].hash == 0);
cout << "HashTable() " << _name << " sizeof(node):" << sizeof(Node) << " n:" << n << endl;
}
Type* get(const Key& k) {