Storage Engine API
index_details.h
Go to the documentation of this file.
1 // index_details.h
2 
31 #pragma once
32 
34 
35 namespace mongo {
36 
37 /* Details about a particular index. There is one of these effectively for each object in
38  system.namespaces (although this also includes the head pointer, which is not in that
39  collection).
40 
41  This is an internal part of the catalog. Nothing outside of the catalog should use this.
42 
43  ** MemoryMapped in NamespaceDetails ** (i.e., this is on disk data)
44  */
45 #pragma pack(1)
46 struct IndexDetails {
51 
52  /* Location of index info object. Format:
53 
54  { name:"nameofindex", ns:"parentnsname", key: {keypattobject}
55  [, unique: <bool>, background: <bool>, v:<version>]
56  }
57 
58  This object is in the system.indexes collection. Note that since we
59  have a pointer to the object here, the object in system.indexes MUST NEVER MOVE.
60  */
62 
66  void _reset();
67 };
68 #pragma pack()
69 
70 } // namespace mongo
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
represents a disk location/offset on disk in a database.
Definition: diskloc.h:53
DiskLoc head
btree head disk location
Definition: index_details.h:50
void _reset()
makes head and info invalid
Definition: index_details.cpp:35
DiskLoc info
Definition: index_details.h:61
Definition: index_details.h:46