[Pvfs2-cvs] commit by bligon in pvfs2/src/server: create-immutable-copies.sm small-io.sm

CVS commit program cvs at parl.clemson.edu
Mon Nov 23 16:51:49 EST 2009


Update of /projects/cvsroot/pvfs2/src/server
In directory parlweb1:/tmp/cvs-serv2553/src/server

Modified Files:
      Tag: Orange-FailOver-small-io
	create-immutable-copies.sm small-io.sm 
Log Message:
Completed coding and debugging of small-io failover.


Index: create-immutable-copies.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/Attic/create-immutable-copies.sm,v
diff -p -u -r1.1.2.3 -r1.1.2.3.2.1
--- create-immutable-copies.sm	14 Aug 2009 21:13:45 -0000	1.1.2.3
+++ create-immutable-copies.sm	23 Nov 2009 21:51:48 -0000	1.1.2.3.2.1
@@ -1249,7 +1249,8 @@ static PINT_sm_action copy_data (struct 
 
        gossip_debug(GOSSIP_MIRROR_DEBUG,"\tabout to allocate mirror_op...\n");
 
-       req->u.mirror.bsize = imm_p->bstream_array_base_local[src];
+       if (imm_p->bstream_array_base_local)
+          req->u.mirror.bsize = imm_p->bstream_array_base_local[src];
        mirror_op->req = req;
        mirror_op->op  = req->op;
        mirror_op->addr = sm_p->addr;/*get addr for this server*/

Index: small-io.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/server/small-io.sm,v
diff -p -u -r1.23 -r1.23.30.1
--- small-io.sm	20 Nov 2008 01:17:11 -0000	1.23
+++ small-io.sm	23 Nov 2009 21:51:49 -0000	1.23.30.1
@@ -59,6 +59,8 @@ machine pvfs2_small_io_sm
 static PINT_sm_action small_io_start_job(
         struct PINT_smcb *smcb, job_status_s *js_p)
 {
+    gossip_debug(GOSSIP_IO_DEBUG,"Executing small_io_start_job...\n");
+
     struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT);
     int ret;
     job_id_t tmp_id;
@@ -179,6 +181,9 @@ static PINT_sm_action small_io_start_job
         }
         
         s_op->u.small_io.result_bytes = result.bytes;
+
+        gossip_debug(GOSSIP_IO_DEBUG,"\tsubmitting job_trove_bstream_read_list for handle %llu\n"
+                                    ,llu(s_op->req->u.small_io.handle));
         ret = job_trove_bstream_read_list(
             s_op->req->u.small_io.fs_id,
             s_op->req->u.small_io.handle,



More information about the Pvfs2-cvs mailing list