mirror of https://gitee.com/bigwinds/arangodb
fixed version expectation
This commit is contained in:
parent
c4cfe7a2ea
commit
abd11203c3
|
@ -928,9 +928,11 @@ int main (int argc, char* argv[]) {
|
|||
TRI_EXIT_FUNCTION(EXIT_FAILURE, NULL);
|
||||
}
|
||||
|
||||
if (major != 1 ||
|
||||
(major == 1 && minor < 4)) {
|
||||
// we can connect to 1.4 and higher only
|
||||
if (major < 1 ||
|
||||
major > 2 ||
|
||||
(major == 1 && minor < 4) ||
|
||||
(major == 2 && minor > 0)) {
|
||||
// we can connect to 1.4, 2.0 and higher only
|
||||
cerr << "Got an incompatible server version '" << versionString << "'" << endl;
|
||||
TRI_EXIT_FUNCTION(EXIT_FAILURE, NULL);
|
||||
}
|
||||
|
|
|
@ -921,9 +921,11 @@ int main (int argc, char* argv[]) {
|
|||
TRI_EXIT_FUNCTION(EXIT_FAILURE, NULL);
|
||||
}
|
||||
|
||||
if (major != 1 ||
|
||||
(major == 1 && minor < 4)) {
|
||||
// we can connect to 1.4 and higher only
|
||||
if (major < 1 ||
|
||||
major > 2 ||
|
||||
(major == 1 && minor < 4) ||
|
||||
(major == 2 && minor > 0)) {
|
||||
// we can connect to 1.4, 2.0 and higher only
|
||||
cerr << "Got an incompatible server version '" << versionString << "'" << endl;
|
||||
TRI_EXIT_FUNCTION(EXIT_FAILURE, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue