summaryrefslogtreecommitdiff
path: root/db/column_family.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/column_family.cc')
-rw-r--r--db/column_family.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/column_family.cc b/db/column_family.cc
index b17571254..06e2b4365 100644
--- a/db/column_family.cc
+++ b/db/column_family.cc
@@ -1652,6 +1652,9 @@ bool ColumnFamilyData::ShouldPostponeFlushToRetainUDT(
}
for (const Slice& table_newest_udt :
imm()->GetTablesNewestUDT(max_memtable_id)) {
+ if (table_newest_udt.empty()) {
+ continue;
+ }
assert(table_newest_udt.size() == full_history_ts_low.size());
// Checking the newest UDT contained in MemTable with ascending ID up to
// `max_memtable_id`. Return immediately on finding the first MemTable that