diff options
author | Thomas Markwalder <tmark@isc.org> | 2015-11-11 20:55:57 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2015-11-11 20:55:57 +0100 |
commit | 71e6ef8777f059ba336b8d60c1688a5b626b610d (patch) | |
tree | b184d9100dc83de1c60b474a45c363e10fd829bf /src/lib/util/versioned_csv_file.cc | |
parent | [3601] Addressed additional review comments (diff) | |
download | kea-71e6ef8777f059ba336b8d60c1688a5b626b610d.tar.xz kea-71e6ef8777f059ba336b8d60c1688a5b626b610d.zip |
[3601] More review comments
Minor log message and comment wording
Diffstat (limited to 'src/lib/util/versioned_csv_file.cc')
-rw-r--r-- | src/lib/util/versioned_csv_file.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/util/versioned_csv_file.cc b/src/lib/util/versioned_csv_file.cc index 81478bfa30..9d4605d143 100644 --- a/src/lib/util/versioned_csv_file.cc +++ b/src/lib/util/versioned_csv_file.cc @@ -145,8 +145,10 @@ VersionedCSVFile::next(CSVRow& row) { break; case NEEDS_UPGRADE: - // Rows must be at least as long as header but not longer - // than the current schema + // The input header met the minimum column count but + // is less than the current schema so: + // Rows must not be shorter than the valid column count + // and not longer than the current schema if (row.getValuesCount() < getValidColumnCount()) { columnCountError(row, "too few columns to upgrade"); row_valid = false; @@ -163,7 +165,8 @@ VersionedCSVFile::next(CSVRow& row) { break; case NEEDS_DOWNGRADE: - // Rows may be as long as header but not shorter than + // The input header exceeded current schema so: + // Rows may be as long as input header but not shorter than // the the current schema if (row.getValuesCount() < getColumnCount()) { columnCountError(row, "too few columns to downgrade"); |