From: Sage Weil Date: Mon, 31 Dec 2012 23:28:25 +0000 (-0800) Subject: client: fix _create created ino condition X-Git-Tag: v0.57~262 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=49ebe1ee3ace406ed841abe40254263aa8bb07c8;p=ceph.git client: fix _create created ino condition We get 8 bytes back for the created ino. Signed-off-by: Sage Weil --- diff --git a/src/client/Client.cc b/src/client/Client.cc index f8028d0e7df0..b76ed8776614 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -6683,7 +6683,7 @@ int Client::_create(Inode *dir, const char *name, int flags, mode_t mode, Inode } // check whether this request actually did the create, and set created flag - if (extra_bl.length() == 1) { + if (extra_bl.length() >= 8) { // if the extra bufferlist has a buffer, we assume its the created inode // and that this request to create succeeded in actually creating // the inode (won the race with other create requests)