From 90c85d9c7df348bf575f53d03acf3ab22affb798 Mon Sep 17 00:00:00 2001 From: muli Date: Sun, 27 Dec 2015 18:47:18 -0500 Subject: [PATCH] allow empty label in rowblackcontainer --- src/data/row_block.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/row_block.h b/src/data/row_block.h index c8781e3228..ea709c2ffa 100644 --- a/src/data/row_block.h +++ b/src/data/row_block.h @@ -137,7 +137,9 @@ template inline RowBlock RowBlockContainer::GetBlock(void) const { // consistency check - CHECK_EQ(label.size() + 1, offset.size()); + if (label.size()) { + CHECK_EQ(label.size() + 1, offset.size()); + } CHECK_EQ(offset.back(), index.size()); CHECK(offset.back() == value.size() || value.size() == 0); RowBlock data;