| 45 | }; |
| 46 | |
| 47 | struct DocumentLayer : ReferenceCounted<DocumentLayer>, NonCopyable { |
| 48 | DocumentLayer(ConnectionOptions defaultConnectionOptions, |
| 49 | Reference<FDB::Database> database, |
| 50 | Reference<DirectorySubspace> rootDirectory) |
| 51 | : defaultConnectionOptions(defaultConnectionOptions), |
| 52 | database(database), |
| 53 | backgroundTasks(false), |
| 54 | rootDirectory(rootDirectory), |
| 55 | mm(new MetadataManager(this)) {} |
| 56 | |
| 57 | Reference<FDB::Database> database; |
| 58 | Reference<MetadataManager> mm; |
| 59 | ConnectionOptions defaultConnectionOptions; |
| 60 | ActorCollection backgroundTasks; |
| 61 | Reference<DirectorySubspace> rootDirectory; |
| 62 | static IMetricReporter* metricReporter; |
| 63 | |
| 64 | // Stats |
| 65 | uint32_t nrConnections = 0; |
| 66 | }; |
| 67 | |
| 68 | #endif /* _DOCLAYER_H_ */ |
nothing calls this directly
no outgoing calls
no test coverage detected