Skip to content

Commit

Permalink
Factor node-system out of start-node
Browse files Browse the repository at this point in the history
For inits a-la-carte
  • Loading branch information
wotbrew authored and FiV0 committed Aug 7, 2023
1 parent fa2ac52 commit 05d36bf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions core/src/main/clojure/xtdb/node.clj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,27 @@
(cond-> opts
(not (ig/find-derived opts parent-k)) (assoc impl-k {})))

(defn node-system [opts]
(-> (into {::node {}
:xtdb/allocator {}
:xtdb/default-tz nil
:xtdb/indexer {}
:xtdb.indexer/internal-id-manager {}
:xtdb/live-chunk {}
:xtdb.indexer/live-index {}
:xtdb/ingester {}
:xtdb.metadata/metadata-manager {}
:xtdb.temporal/temporal-manager {}
:xtdb.buffer-pool/buffer-pool {}
:xtdb.operator.scan/scan-emitter {}
:xtdb.operator/ra-query-source {}
::txp/tx-producer {}}
opts)
(doto ig/load-namespaces)
(with-default-impl :xtdb/log :xtdb.log/memory-log)
(with-default-impl :xtdb/object-store :xtdb.object-store/memory-object-store)
(doto ig/load-namespaces)))

(defn start-node ^xtdb.node.Node [opts]
(let [system (-> (into {::node {}
:xtdb/allocator {}
Expand Down

0 comments on commit 05d36bf

Please sign in to comment.