nickva opened a new pull request, #5650:
URL: https://github.com/apache/couchdb/pull/5650

   When we implemented partitioned dbs we added a generic `props` features to 
the db shards and the shard docs. The `props` is a generic prop (KV) list which 
can store database metadata properties. Currently it only stores the 
`partitioned` and the `hash` db properties.
   
   Recently we discussed possibly storing a new TTL flag or moving some other 
metadata bits like security or revs limits and such to props and we'd want to 
them both for the clustered and local shards (for local _dbs, _nodes etc).
   
   In order to use props like that we'd want to allow dynamically updating 
props after the initial db creations so that's what this PR does.
   
   We still want to ensure ``partitioned`` and hash ``properties`` are "static" 
and we don't allow modifying them later so there an way in couch_db.erl to flag 
a set of properties as "static".
   
   A part of the dynamic API to set props on shards was already implemented in 
the form of `couch_db_engine:set_props/2` so in the PR we just build the rest 
of the bits in couch_db and fabric.
   
   This is also a first part which update properties for shards files, we'll 
follow up with another commit to allow update the props in the shard map 
document as well.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to