Load all /config/
This commit is contained in:
@@ -288,12 +288,8 @@ void etcd_state_client_t::load_pgs(std::function<void(const std::string &)> cb)
|
|||||||
json11::Json::array txn = {
|
json11::Json::array txn = {
|
||||||
json11::Json::object {
|
json11::Json::object {
|
||||||
{ "request_range", json11::Json::object {
|
{ "request_range", json11::Json::object {
|
||||||
{ "key", base64_encode(etcd_prefix+"/config/pools") },
|
{ "key", base64_encode(etcd_prefix+"/config/") },
|
||||||
} }
|
{ "range_end", base64_encode(etcd_prefix+"/config0") },
|
||||||
},
|
|
||||||
json11::Json::object {
|
|
||||||
{ "request_range", json11::Json::object {
|
|
||||||
{ "key", base64_encode(etcd_prefix+"/config/pgs") },
|
|
||||||
} }
|
} }
|
||||||
},
|
},
|
||||||
json11::Json::object {
|
json11::Json::object {
|
||||||
@@ -301,12 +297,6 @@ void etcd_state_client_t::load_pgs(std::function<void(const std::string &)> cb)
|
|||||||
{ "key", base64_encode(etcd_prefix+"/pg/config") },
|
{ "key", base64_encode(etcd_prefix+"/pg/config") },
|
||||||
} }
|
} }
|
||||||
},
|
},
|
||||||
json11::Json::object {
|
|
||||||
{ "request_range", json11::Json::object {
|
|
||||||
{ "key", base64_encode(etcd_prefix+"/config/inode/") },
|
|
||||||
{ "range_end", base64_encode(etcd_prefix+"/config/inode0") },
|
|
||||||
} }
|
|
||||||
},
|
|
||||||
json11::Json::object {
|
json11::Json::object {
|
||||||
{ "request_range", json11::Json::object {
|
{ "request_range", json11::Json::object {
|
||||||
{ "key", base64_encode(etcd_prefix+"/pg/history/") },
|
{ "key", base64_encode(etcd_prefix+"/pg/history/") },
|
||||||
|
|||||||
Reference in New Issue
Block a user