Commit ba15581b authored by Shane Snyder's avatar Shane Snyder

bug fix: persist at same offset as write

parent a8a57641
......@@ -150,7 +150,7 @@ void write_op_exec_write(void* u, buffer_u buf, size_t len, uint64_t offset)
if(ret != 0) {
ERROR bake_perror( "bake_proxy_write", ret);
}
ret = bake_persist(bake_ph, rid, offset, len);
ret = bake_persist(bake_ph, rid, 0, len);
if(ret != 0) {
ERROR bake_perror("bake_persist", ret);
}
......@@ -225,7 +225,7 @@ void write_op_exec_writesame(void* u, buffer_u buf, size_t data_len, size_t writ
LEAVING;
return;
}
ret = bake_persist(bph, rid, offset, data_len);
ret = bake_persist(bph, rid, 0, data_len);
if(ret != 0) {
ERROR bake_perror("bake_persist", ret);
LEAVING;
......@@ -302,7 +302,7 @@ void write_op_exec_append(void* u, buffer_u buf, size_t len)
if (ret != 0) bake_perror("bake_create", ret);
ret = bake_proxy_write(bph, rid, 0, remote_bulk, buf.as_offset, remote_addr_str, len);
if (ret != 0) bake_perror("bake_proxy_write", ret);
ret = bake_persist(bph, rid, offset, len);
ret = bake_persist(bph, rid, 0, len);
if (ret != 0) bake_perror("bake_persist", ret);
insert_region_log_entry(sdskv_ph, seg_db_id, oid, offset, len, &rid, ts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment