Actually check if the number of fields in a write are equal to the

number of fields required.

Addresses BIT-1683

I do not think this quite fixes the underlying issue of BIT-1683 - it
should not be possible to get to this state in normal operations.

Also fixes a small memory leak for disabled writers.
This commit is contained in:
Johanna Amann 2016-09-22 16:33:09 -07:00
parent 0bc4a5ea52
commit 038dfa6273
6 changed files with 144 additions and 4 deletions

View file

@ -203,7 +203,7 @@ public:
protected:
friend class Manager;
void DeleteVals(threading::Value** vals);
void DeleteVals(threading::Value** vals, int num_fields);
EnumVal* stream;
EnumVal* writer;