cluster/afr: Hold inode lock on 0-infinity for a flush transaction.

Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 326 ([2.0.8rc9] Spurious self-heal)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=326
This commit is contained in:
Vikas Gorur 2009-12-07 04:40:57 +00:00 committed by Anand V. Avati
parent 4fdfc9fdcc
commit 7499335588

View File

@ -1397,7 +1397,7 @@ afr_flush (call_frame_t *frame, xlator_t *this, fd_t *fd)
local->fd = fd_ref (fd);
local->transaction.main_frame = frame;
local->transaction.start = LLONG_MAX - 1;
local->transaction.start = 0;
local->transaction.len = 0;
afr_transaction (transaction_frame, this, AFR_FLUSH_TRANSACTION);