[sheepdog] [PATCH v4] cluster: change the interface of distributed lock

2013-12-09 Thread Robin Dong
From: Robin Dong san...@taobao.com Using only lock_id as parameter of lock interface and reduce function to only two: lock(uint64_t lock_id) unlock(uint64_t lock_id) The -lock will create and acquire the distributed lock and -unlock will release it which is more convient for end

Re: [sheepdog] [PATCH v4] cluster: change the interface of distributed lock

2013-12-09 Thread Liu Yuan
On Mon, Dec 09, 2013 at 05:18:30PM +0800, Robin Dong wrote: From: Robin Dong san...@taobao.com Using only lock_id as parameter of lock interface and reduce function to only two: lock(uint64_t lock_id) unlock(uint64_t lock_id) The -lock will create and acquire the