features/locks: Use fuse supplied lock owner even for internal locks.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 934 (md5sum mismatch when files are transferred using vsftpd) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=934
This commit is contained in:
parent
5e849ce81a
commit
4d195fb92f
@ -326,7 +326,7 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type,
|
||||
|
||||
trans = frame->root->trans;
|
||||
client_pid = frame->root->pid;
|
||||
owner = (uint64_t)(long)frame->root;
|
||||
owner = frame->root->lk_owner;
|
||||
|
||||
lock = new_entrylk_lock (pinode, basename, type, trans, client_pid, owner, dom->domain);
|
||||
if (!lock) {
|
||||
|
@ -570,7 +570,7 @@ pl_common_inodelk (call_frame_t *frame, xlator_t *this,
|
||||
|
||||
transport = frame->root->trans;
|
||||
client_pid = frame->root->pid;
|
||||
owner = (uint64_t) (long)frame->root;
|
||||
owner = frame->root->lk_owner;
|
||||
|
||||
pinode = pl_inode_get (this, inode);
|
||||
if (!pinode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user