]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: disable barrier support 1254/head
authorSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 18:27:23 +0000 (10:27 -0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 18:27:23 +0000 (10:27 -0800)
The boost interval_set class is not available on centos6/rhel6.  Until that
dependency is sorted out, fix the build.

Signed-off-by: Sage Weil <sage@inktank.com>
src/client/Client.cc
src/client/Client.h
src/client/Makefile.am

index d8f90eb73c885c19c1e1826c6f481b5a691225f4..a68c8443f4677a4b637a4c80b54ad49def5a1288 100644 (file)
@@ -8222,7 +8222,7 @@ int Client::ll_write_block(Inode *in, uint64_t blockid,
   if (length == 0) {
     return -EINVAL;
   }
-  if (sync) {
+  if (true || sync) {
     /* if write is stable, the epilogue is waiting on
      * flock */
     onack = new C_NoopContext;
@@ -8232,8 +8232,9 @@ int Client::ll_write_block(Inode *in, uint64_t blockid,
     /* if write is unstable, we just place a barrier for
      * future commits to wait on */
     onack = new C_NoopContext;
-    onsafe = new C_Block_Sync(this, vino.ino,
+    /*onsafe = new C_Block_Sync(this, vino.ino,
                              barrier_interval(offset, offset + length), &r);
+    */
     done = true;
   }
   object_t oid = file_object_t(vino.ino, blockid);
@@ -8282,6 +8283,7 @@ int Client::ll_commit_blocks(Inode *in,
                             uint64_t length)
 {
     Mutex::Locker lock(client_lock);
+    /*
     BarrierContext *bctx;
     vinodeno_t vino = ll_get_vino(in);
     uint64_t ino = vino.ino;
@@ -8298,7 +8300,7 @@ int Client::ll_commit_blocks(Inode *in,
       barrier_interval civ(offset, offset + length);
       p->second->commit_barrier(civ);
     }
-
+    */
     return 0;
 }
 
index 5918739f3706d5c7c07166b0abcbb52ab4dd3ec8..bd30c09492f415e4d0da572a3b27333a5c2f6933 100644 (file)
@@ -35,7 +35,7 @@ using std::fstream;
 #include "include/interval_set.h"
 #include "include/lru.h"
 
-#include "barrier.h"
+//#include "barrier.h"
 
 #include "mds/mdstypes.h"
 
@@ -315,7 +315,7 @@ protected:
   ceph::unordered_map<inodeno_t,SnapRealm*> snap_realms;
 
   /* async block write barrier support */
-  map<uint64_t, BarrierContext* > barriers;
+  //map<uint64_t, BarrierContext* > barriers;
 
   SnapRealm *get_snap_realm(inodeno_t r);
   SnapRealm *get_snap_realm_maybe(inodeno_t r);
index de0bfdba200162837754c3d27be663d81d0aac52..53107eba51742529b8a2b03a440e311bc6b86c9d 100644 (file)
@@ -1,6 +1,5 @@
 libclient_la_SOURCES = \
        client/Client.cc \
-       client/barrier.cc \
        client/Inode.cc \
        client/Dentry.cc \
        client/MetaRequest.cc \
@@ -21,7 +20,6 @@ noinst_HEADERS += \
        client/ClientSnapRealm.h \
        client/SyntheticClient.h \
        client/Trace.h \
-       client/barrier.h \
        client/ioctl.h \
        client/ObjecterWriteback.h