Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373399
b: refs/heads/master
c: b027032
h: refs/heads/master
i:
  373397: 4471c6d
  373395: 15114b3
  373391: abbc310
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 6bcc5a4 commit a5fa9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d18d1e2807f38a94839be1f83682e17011f53322
refs/heads/master: b0270324c5a9a5157f565c2de34fb1071cfdce7c
13 changes: 3 additions & 10 deletions trunk/net/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,17 +581,10 @@ struct ceph_osd_request *ceph_osdc_new_request(struct ceph_osd_client *osdc,
truncate_size = object_size;
}

memset(&ops, 0, sizeof ops);
ops[0].op = opcode;
ops[0].extent.offset = objoff;
ops[0].extent.length = objlen;
ops[0].extent.truncate_size = truncate_size;
ops[0].extent.truncate_seq = truncate_seq;
if (ops[0].op == CEPH_OSD_OP_WRITE)
ops[0].payload_len = *plen;

osd_req_op_extent_init(&ops[0], opcode, objoff, objlen,
truncate_size, truncate_seq);
if (do_sync)
ops[1].op = CEPH_OSD_OP_STARTSYNC;
osd_req_op_init(&ops[1], CEPH_OSD_OP_STARTSYNC);

req->r_file_layout = *layout; /* keep a copy */

Expand Down

0 comments on commit a5fa9e2

Please sign in to comment.