Expose the latest modified index seen by EtcdConfig
authorGiuseppe Lavagetto <glavagetto@wikimedia.org>
Fri, 16 Feb 2018 16:08:58 +0000 (17:08 +0100)
committerGiuseppe Lavagetto <glavagetto@wikimedia.org>
Thu, 1 Mar 2018 12:44:15 +0000 (13:44 +0100)
commit2a77862c522dd0de76498f905aede9d334618e44
tree89de9944e0bbc27949aba758067925c8b5503c18
parent82622146f87a3e3e5e6a0c7bf36fa87d954be493
Expose the latest modified index seen by EtcdConfig

While not immediately useful for fecthing the configuration, this is
basically a version information about the configuration currently loaded
from etcd. A typical use-case for this index is monitoring the freshness
of the configuration across a cluster of servers.

Bug: T182597
Change-Id: I58189d36a5b620fb44323bae87257f085a64386e
includes/config/EtcdConfig.php
tests/phpunit/includes/config/EtcdConfigTest.php