(ns onyx.peer.log-version)

(def version "0.10.0-SNAPSHOT")

(defn check-compatible-log-versions! [cluster-version]
  (when-not (or (re-find #"-SNAPSHOT" version)
                 (= version cluster-version))
    (throw (ex-info "Incompatible versions of the Onyx cluster coordination log.
                     A new, distinct, :onyx/tenancy-id should be supplied when upgrading or downgrading Onyx." 
                    {:cluster-version cluster-version
                     :peer-version version}))))

(ns onyx.peer.log-version)

(def version "0.10.0-SNAPSHOT")

(defn check-compatible-log-versions! [cluster-version]
  (when-not (or (re-find #"-" version)
                 (= version cluster-version))
    (throw (ex-info "Incompatible versions of the Onyx cluster coordination log.
                     A new, distinct, :onyx/tenancy-id should be supplied when upgrading or downgrading Onyx." 
                    {:cluster-version cluster-version
                     :peer-version version}))))

Revert "Make alpha/beta/etc versions incompatible with each other."
Revert "Make alpha/beta/etc versions incompatible with each other."

This reverts commit ae9cd69e738069965b2a97784bb7b7fd833be8b6.

onyx-platform/onyx