On Wed, Aug 06, 2014 at 08:26:46PM +0800, Bingpeng Zhu wrote: > In current implementation, When we create a bucket, we decide > the bnode's location in account VDI using sd_hash(bucket_name) > as key. We handle hash conflict by linear probing hash table. > Here is the bug: > When we delete a bucket, we can't discard its bnode. Because > bnode_lookup() need it to find if some bucket exists or not > by checking adjacent bnodes. Therefore, we just zero its > bnode.name when client want to delete a bucket. When we create > a bucket later, we can reuse the zero bnode if they hash to > the same location in account VDI. So, we need to change the > implementation of bnode lookup and bnode create function, too. > > Signed-off-by: Bingpeng Zhu <bingpeng....@alibaba-inc.com>
Applied thanks Yuan -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog