From 05d1bb2eaaf8cab1888c5611c0dfb15be8050df5 Mon Sep 17 00:00:00 2001 From: sageweil Date: Thu, 7 Dec 2006 19:07:52 +0000 Subject: [PATCH] testing osd revision git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@980 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/client/Client.cc | 4 +++- ceph/client/FileCache.cc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ceph/client/Client.cc b/ceph/client/Client.cc index 2c9870ceace0d..d33ded3aaf73b 100644 --- a/ceph/client/Client.cc +++ b/ceph/client/Client.cc @@ -2375,7 +2375,9 @@ int Client::write(fh_t fh, const char *buf, off_t size, off_t offset) dout(20) << " sync write start " << onfinish << endl; filer->write(in->inode, offset, size, blist, 0, - onfinish, onsafe); + onfinish, onsafe + //, 1+((int)g_clock.now()) / 10 //f->pos // hack hack test osd revision snapshots + ); while (!done) { cond.Wait(client_lock); diff --git a/ceph/client/FileCache.cc b/ceph/client/FileCache.cc index b8e5c94ee32ac..36b28dc600391 100644 --- a/ceph/client/FileCache.cc +++ b/ceph/client/FileCache.cc @@ -147,7 +147,7 @@ void FileCache::write(off_t offset, size_t size, bufferlist& blist, Mutex& clien oc->file_write(inode, offset, size, blist); } else { // atomic, synchronous, blocking. - oc->file_atomic_sync_write(inode, offset, size, blist, client_lock); + oc->file_atomic_sync_write(inode, offset, size, blist, client_lock); } // dec writing counter -- 2.39.5