Skip to content

Commit

Permalink
fix writing properties with type object_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsadok committed Jan 16, 2023
1 parent dd18f64 commit 53fd559
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/legacy_object_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "json.hpp"
#include "legacy_object_client.hpp"
#include "legacy_protocol.hpp"
#include "print_utils.hpp"
#include <fibre/simple_serdes.hpp>

using namespace fibre;
Expand Down Expand Up @@ -441,6 +442,7 @@ Cont TheStateMachine::iteration(WriteArgs args) {
ctx_->downfacing_socket());
arg_num_++;
changed_state = true;
buf = {};
return Cont1{kFibreOk, args.buf.begin()};
} else {
arg_num_ = args_.size() + start_arg;
Expand Down Expand Up @@ -477,6 +479,10 @@ Cont TheStateMachine::iteration(WriteArgs args) {
changed_state = true;
return Cont1{kFibreInternalError, args.buf.begin()};
}

// TODO: buf should probably be reset somewhere, otherwise we
// can't transcode two arguments in a row.

chunks_[0] = Chunk{0, buf};
chunks_[1] = Chunk::frame_boundary(0);
changed_state = true;
Expand Down

0 comments on commit 53fd559

Please sign in to comment.