]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Added a cheap hack for testing purposes. It's commented out via a
authoreestolan <eestolan@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Nov 2007 06:12:30 +0000 (06:12 +0000)
committereestolan <eestolan@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Nov 2007 06:12:30 +0000 (06:12 +0000)
#define CHEAP_HACK 0

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2130 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/client/SyntheticClient.cc

index 364da42a9a0500d2eb817367223e094e79f2c13b..dfdc17a1fcde7d58088819f5f0b0dd51403b9d8e 100644 (file)
@@ -1684,6 +1684,13 @@ int SyntheticClient::write_file(string& fn, int size, int wrsize)   // size is i
   dout(5) << "writing to " << fn << " fd " << fd << dendl;
   if (fd < 0) return fd;
 
+#define CHEAP_HACK 0
+#if CHEAP_HACK
+  // START temporary hack piece 1 --Esteban
+  for (int foo = 0; foo < 10; ++foo) {
+  // END temporary hack piece 1 --Esteban
+#endif
+
   for (unsigned i=0; i<chunks; i++) {
     if (time_to_stop()) {
       dout(0) << "stopping" << dendl;
@@ -1705,7 +1712,13 @@ int SyntheticClient::write_file(string& fn, int size, int wrsize)   // size is i
 
     client->write(fd, buf, wrsize, i*wrsize);
   }
-  
+#if CHEAP_HACK
+  // START temporary hack piece 2--Esteban
+  }
+  sleep(5);
+  // END temporary hack piece 2 --Esteban
+#endif
+
   client->close(fd);
   delete[] buf;