Skip to content

Commit

Permalink
a collection is considered valid if attached to an event store/having…
Browse files Browse the repository at this point in the history
… a proper collection ID (#191)
  • Loading branch information
hegner authored May 28, 2021
1 parent b8e0839 commit b9f71df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion python/templates/Collection.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ void {{ collection_type }}::prepareAfterRead() {
// at this point we are done with the I/O buffer and can safely clear it to not
// have a redundant (but now useless) copy of the data
m_data->clear();
m_isValid = true;
m_isReadFromFile = true;
}

Expand Down
1 change: 1 addition & 0 deletions python/templates/Collection.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public:
std::for_each(m_entries.begin(),m_entries.end(),
[ID] ({{ class.bare_type }}Obj* obj) { obj->id = {obj->id.index, static_cast<int>(ID)}; }
);
m_isValid = true;
};

unsigned getID() const override final {
Expand Down

0 comments on commit b9f71df

Please sign in to comment.