]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: implement collection_move_rename
authorSage Weil <sage@inktank.com>
Tue, 3 Sep 2013 22:13:40 +0000 (15:13 -0700)
committerSage Weil <sage@inktank.com>
Wed, 11 Sep 2013 22:19:18 +0000 (15:19 -0700)
commit17c5d765d7c7573f875f6b3ba66e3b6813110a06
treec130c8d67a2a260c56406e6de2f7530a3b1b40a8
parentef7cffc34f3bad4ffc090361ad9030a47584a3bf
os/FileStore: implement collection_move_rename

This is similar to a collection_add + collection_move sequence in that we
apply the same replay guards.  The difference is that we roll it up into
a single operation, change the filename, and make the omap content carry
over by calling DBObjectMap->clone (as there is no rename function or
collection awareness in the DBObjectMap).

Signed-off-by: Sage Weil <sage@inktank.com>
src/os/FileStore.cc
src/os/FileStore.h
src/test/filestore/store_test.cc