mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
FileStore::lfn_link: handle link within a collection
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
6d05fa23be
commit
1b5992b0f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user