···135135 println!("rocks ready.");
136136 std::thread::scope(|s| {
137137 if args.reset_db_start {
138138- let rocks = rocks.clone();
139139- s.spawn(move || {
140140- let res = rocks.reset_start();
141141- eprintln!("reset start finished: {res:?}");
142142- });
138138+ let res = rocks.reset_start();
139139+ eprintln!("reset start finished: {res:?}");
143140 }
144141 s.spawn(|| {
145142 let r = run(
+2
constellation/src/storage/rocks_store.rs
···718718impl Drop for RocksStorage {
719719 fn drop(&mut self) {
720720 if self.is_writer {
721721+ // TODO: cloning a writer is possible and currently breaks things
722722+ // (constellation code currently doesn't/shouldn't clone the writer)
721723 println!("rocksdb writer: cleaning up for shutdown...");
722724 if let Err(e) = self.db.flush_wal(true) {
723725 eprintln!("rocks: flushing wal failed: {e:?}");