diff --git a/db/namespace.h b/db/namespace.h index e1042e78859..d252c7ce60f 100644 --- a/db/namespace.h +++ b/db/namespace.h @@ -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: diff --git a/util/hashtab.h b/util/hashtab.h index 60ffa648530..3a9e5ff801a 100644 --- a/util/hashtab.h +++ b/util/hashtab.h @@ -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) {