From bceabc9127015218015e00f4618bf4b2f022ed21 Mon Sep 17 00:00:00 2001 From: "Jason E. Aten" Date: Thu, 29 Oct 2020 02:11:28 +0000 Subject: [PATCH] error on un-implemented migrate to roaring --- txfactory.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/txfactory.go b/txfactory.go index c797f3415..251993ee0 100644 --- a/txfactory.go +++ b/txfactory.go @@ -1309,6 +1309,11 @@ func (f *TxFactory) green2blue(holder *Holder) (err error) { blueDest := f.types[0] greenSrc := f.types[1] + + if blueDest == roaringTxn { + return fmt.Errorf("error: cannot migration to 'roaring': not implemented.") + } + idxs := holder.Indexes() verifyInsteadOfCopy := false