From: Samuel Just Date: Thu, 5 Dec 2013 22:55:18 +0000 (-0800) Subject: FileStore::lfn_link: handle link within a collection X-Git-Tag: v0.78~286^2~50 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b5992b0f0a4362e715642b8694630a076ccfeba;p=ceph.git FileStore::lfn_link: handle link within a collection Signed-off-by: Samuel Just --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index d18393c06ab7..2a79e8bc350d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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)