pub fn await_rocksdb_termination() {
        let (lock, cvar) = &ROCKSDB_INSTANCE_COUNTER;
        let mut num_instances = lock.lock().unwrap();
        while *num_instances != 0 {
            tracing::info!(
                "Waiting for all the RocksDB instances to be dropped, {} remaining",
                *num_instances
            );
            num_instances = cvar.wait(num_instances).unwrap();
        }
        tracing::info!("All the RocksDB instances are dropped");
    }
Awaits termination of all running RocksDB instances.

This method is blocking and should be wrapped in `spawn_blocking(_)` if run in the async context.
core/lib/storage/src/db.rs