Commit 28228eb3 authored by Rob Latham's avatar Rob Latham
Browse files

update for bake API changes

parent cdf81677
...@@ -150,7 +150,7 @@ void write_op_exec_write(void* u, buffer_u buf, size_t len, uint64_t offset) ...@@ -150,7 +150,7 @@ void write_op_exec_write(void* u, buffer_u buf, size_t len, uint64_t offset)
if(ret != 0) { if(ret != 0) {
ERROR fprintf(stderr, "bake_proxy_write returned %d\n", ret); ERROR fprintf(stderr, "bake_proxy_write returned %d\n", ret);
} }
ret = bake_persist(bake_ph, rid); ret = bake_persist(bake_ph, rid, offset, len);
if(ret != 0) { if(ret != 0) {
ERROR fprintf(stderr, "bake_persist returned %d\n", ret); ERROR fprintf(stderr, "bake_persist returned %d\n", ret);
} }
...@@ -225,7 +225,7 @@ void write_op_exec_writesame(void* u, buffer_u buf, size_t data_len, size_t writ ...@@ -225,7 +225,7 @@ void write_op_exec_writesame(void* u, buffer_u buf, size_t data_len, size_t writ
LEAVING; LEAVING;
return; return;
} }
ret = bake_persist(bph, rid); ret = bake_persist(bph, rid, offset, data_len);
if(ret != 0) { if(ret != 0) {
ERROR fprintf(stderr, "bake_persist returned %d\n", ret); ERROR fprintf(stderr, "bake_persist returned %d\n", ret);
LEAVING; LEAVING;
...@@ -300,7 +300,7 @@ void write_op_exec_append(void* u, buffer_u buf, size_t len) ...@@ -300,7 +300,7 @@ void write_op_exec_append(void* u, buffer_u buf, size_t len)
ret = bake_create(bph, bti, len, &rid); ret = bake_create(bph, bti, len, &rid);
ret = bake_proxy_write(bph, rid, 0, remote_bulk, buf.as_offset, remote_addr_str, len); ret = bake_proxy_write(bph, rid, 0, remote_bulk, buf.as_offset, remote_addr_str, len);
ret = bake_persist(bph, rid); ret = bake_persist(bph, rid, offset, len);
insert_region_log_entry(sdskv_ph, seg_db_id, oid, offset, len, &rid, ts); 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