FileStore::lfn_link: handle link within a collection

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-12-05 14:55:18 -08:00
parent 6d05fa23be
commit 1b5992b0f0

View File

@ -293,6 +293,11 @@ int FileStore::lfn_link(coll_t c, coll_t newcid, const ghobject_t& o, const ghob
r = get_index(c, &index_old);
if (r < 0)
return r;
} else if (c == newcid) {
r = get_index(c, &index_old);
if (r < 0)
return r;
index_new = index_old;
} else {
r = get_index(c, &index_old);
if (r < 0)