Skip to content

Commit

Permalink
fix array index array
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Dalessandro committed Apr 2, 2008
1 parent 53b3b71 commit 36e6bfd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/client/sysint/sys-osd-io.sm
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)
}
this_aggregate_size += sresult.bytes;

gossip_debug(GOSSIP_IO_DEBUG, "%s: Current Offset %lld\n", __func__,
lld(target_offset[i]));

#if 0
printf("SERVER INFO [%d]:\n", i);
printf("Total size %lld \n", lld(sresult.bytes));
Expand Down Expand Up @@ -367,7 +364,8 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)
/* Build the command for this server, using physical offset. */
if (io->io_type == PVFS_IO_READ) {
osd_command_set_read(command, PVFS_OSD_DATA_PID, datafile_handle,
len, target_offset[i]);
len, target_offset[0]);

command->indata = p;
command->inlen_alloc = len;
command->iov_inlen = csegs_count;
Expand All @@ -376,11 +374,10 @@ static int osd_io_setup_msgpairs(struct PINT_smcb *smcb, job_status_s *js_p)

} else if (io->io_type == PVFS_IO_WRITE) {
osd_command_set_write(command, PVFS_OSD_DATA_PID, datafile_handle,
len, target_offset[i]);
len, target_offset[0]);
command->outdata = p;
command->outlen = len;
command->iov_outlen = csegs_count;

//~ printf("Contig WRITE %d\n", len);
}

Expand Down

0 comments on commit 36e6bfd

Please sign in to comment.