Skip to content

Commit

Permalink
Fixes marklogic-community#198: added check of server-version against …
Browse files Browse the repository at this point in the history
…xdmp:version
  • Loading branch information
grtjn committed Jun 8, 2017
1 parent 1326241 commit 6c2703e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ def initialize(options)
else
@qconsole_port = @bootstrap_port
end

r = execute_query %Q{ substring-before(xdmp:version(), ".") }
r.body = parse_body r.body
if r.body.to_i != @server_version
logger.warn "WARN: #{@hostname} is running MarkLogic #{r.body}, but server-version is set to #{@server_version}!"
end
end

def get_properties
Expand Down

0 comments on commit 6c2703e

Please sign in to comment.