db/view_building_task_mutation_builder: add empty() method

The method allows to check if the builder contains any changes,
so it will allow to skip emitting empty mutation.
This commit is contained in:
Michał Jadwiszczak
2026-05-18 09:54:26 +02:00
parent 39a10d6d67
commit 82eb5611ab

View File

@@ -52,6 +52,9 @@ public:
mutation build() {
return std::move(_m);
}
bool empty() const {
return _m.partition().empty();
}
private:
clustering_key get_ck(utils::UUID id);