mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
alignment
This commit is contained in:
parent
cbf7e7db04
commit
fd2993de59
@ -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:
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user