Re: a problem about FileStore::_destroy_collection

2015-11-16 Thread Sage Weil
On Mon, 16 Nov 2015, yangruifeng.09...@h3c.com wrote: > an ENOTEMPTY error mybe happen when removing a pg in previous > versions?but the error is hidden in new versions? When did this change? sage > _destroy_collection maybe return 0 when get_index or prep_delete return < 0; > > is this intend

a problem about FileStore::_destroy_collection

2015-11-15 Thread yangruifeng.09...@h3c.com
an ENOTEMPTY error mybe happen when removing a pg in previous versions,but the error is hidden in new versions。 _destroy_collection maybe return 0 when get_index or prep_delete return < 0; is this intended? int FileStore::_destroy_collection(coll_t c) { int r = 0;