{"push_id":539100223,"size":1,"distinct_size":1,"ref":"refs/heads/unstable","head":"6e087cd2ff1dae5b7e00c1117f9599aa50814628","before":"ae3d341739fd466e18c4c93e99815ce7f4d2391d","commits":[{"sha":"6e087cd2ff1dae5b7e00c1117f9599aa50814628","author":{"email":"2f29b3af7c0535fb265c8b2d3caf6a0c8ecda903@slynux.com","name":"Sarath Lakshman"},"message":"cluster_info: Add Lock() and Unlock() helper methods\n\nIf there are multiple concurrent users for the same cluster_info\ninstance, access should be serialized using a lock.\nAdded helper methods to lock and unlock cluster_info for concurrent\naccess.\n\nEg.\n    ci.Lock()\n    ci.Fetch()\n    nodes := ci.GetNodesByServiceType(\"srv\")\n    addr := ci.GetServiceAddress(nodes[0])\n    ci.Unlock()\n\nnodeId returned by cluster_info APIs will become invalid with subsequent\nFetch() call. Hence, API calls followed by a Fetch() should be protected\nusing a lock.\n\nChange-Id: I1c68821b89b4ea9fa303740bfe76b34cc67866c4","distinct":true,"url":"https://api.github.com/repos/couchbase/indexing/commits/6e087cd2ff1dae5b7e00c1117f9599aa50814628"}]}