]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Make ll_create use _create
authorSam Lang <sam.lang@inktank.com>
Mon, 17 Dec 2012 19:54:23 +0000 (09:54 -1000)
committerSage Weil <sage@inktank.com>
Fri, 28 Dec 2012 23:10:02 +0000 (15:10 -0800)
commit7f35e5dda6ad4f16b8d9afbf61b85d26460c3a36
tree62b8bc91fbc201164e69c1f7500c9152909a283c
parent948e75246cb1311372b5be87a7ebf43b7cba329f
client: Make ll_create use _create

This is a fix for bug #3625, where multiple clients race to create a
file, and the loser returns EEXIST instead of a valid file handle.
The patch modifies ll_create in the Client class to use _create(),
which sends the request to the MDS (where an atomic create/open is
performed).

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc