Permalink
Browse files

Merge pull request #1187 from jubatus/fix-1179

Disable strict version checking (fix #1179)
  • Loading branch information...
2 parents d61982e + 73301c7 commit 1a95296c4ca430630744d752ed51a41fe4e3167f @rimms rimms committed on GitHub Mar 24, 2017
Showing with 3 additions and 6 deletions.
  1. +3 −6 jubatus/server/framework/save_load.cpp
@@ -183,16 +183,13 @@ void load_server(
uint32_t jubatus_minor_read = read_big_endian<uint32_t>(&header_buf[20]);
uint32_t jubatus_maintenance_read =
read_big_endian<uint32_t>(&header_buf[24]);
- if (jubatus_major_read != jubatus_version_major ||
- jubatus_minor_read != jubatus_version_minor ||
- jubatus_maintenance_read != jubatus_version_maintenance) {
+ if (jubatus_major_read != 1) {
throw JUBATUS_EXCEPTION(
core::common::exception::runtime_error(
- "jubatus version mismatched: " +
+ "cannot load model file created before v1.0.0: " +
lexical_cast<std::string>(jubatus_major_read) + "." +
lexical_cast<std::string>(jubatus_minor_read) + "." +
- lexical_cast<std::string>(jubatus_maintenance_read) +
- ", expected (current) version: " JUBATUS_VERSION));
+ lexical_cast<std::string>(jubatus_maintenance_read)));
}
uint32_t crc32_expected = read_big_endian<uint32_t>(&header_buf[28]);
uint64_t system_data_size = read_big_endian<uint64_t>(&header_buf[32]);

0 comments on commit 1a95296

Please sign in to comment.