Skip to content

Commit f30de5a

Browse files
committed
Create graph_meta_storage correctly
1 parent e261cc3 commit f30de5a

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

db4-storage/src/pages/mod.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,28 +165,33 @@ impl<
165165

166166
let node_meta = Arc::new(node_meta);
167167
let edge_meta = Arc::new(edge_meta);
168+
let graph_meta = Arc::new(graph_meta);
168169

169-
let nodes = Arc::new(NodeStorageInner::new_with_meta(
170+
let node_storage = Arc::new(NodeStorageInner::new_with_meta(
170171
nodes_path,
171172
node_meta,
172173
edge_meta.clone(),
173174
ext.clone(),
174175
));
175-
let edges = Arc::new(EdgeStorageInner::new_with_meta(
176+
let edge_storage = Arc::new(EdgeStorageInner::new_with_meta(
176177
edges_path,
177178
edge_meta,
178179
ext.clone(),
179180
));
180-
let meta = Arc::new(GraphMetaStorageInner::new(meta_path, ext.clone()));
181+
let graph_meta_storage = Arc::new(GraphMetaStorageInner::new_with_meta(
182+
meta_path,
183+
graph_meta,
184+
ext.clone(),
185+
));
181186

182187
if let Some(graph_dir) = graph_dir {
183-
write_graph_config(graph_dir, &ext).expect("Unrecoverable! Failed to write graph meta");
188+
write_graph_config(graph_dir, &ext).expect("Unrecoverable! Failed to write graph config");
184189
}
185190

186191
Self {
187-
nodes,
188-
edges,
189-
graph_meta: meta,
192+
nodes: node_storage,
193+
edges: edge_storage,
194+
graph_meta: graph_meta_storage,
190195
event_id: AtomicUsize::new(0),
191196
graph_dir: graph_dir.map(|p| p.to_path_buf()),
192197
_ext: ext,

raphtory-graphql/src/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use raphtory::{
1818
graph::{edge::EdgeView, node::NodeView, views::deletion_graph::PersistentGraph},
1919
},
2020
errors::{GraphError, GraphResult},
21-
prelude::{EdgeViewOps, Graph, IndexMutationOps, NodeViewOps, StableDecode},
21+
prelude::{EdgeViewOps, Graph, GraphViewOps, IndexMutationOps, NodeViewOps, PropertiesOps, StableDecode},
2222
serialise::GraphFolder,
2323
vectors::{cache::VectorCache, vectorised_graph::VectorisedGraph},
2424
};

0 commit comments

Comments
 (0)