Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix(thrift): add start_time_ns for structure mutation_update in thrif…
Browse files Browse the repository at this point in the history
…t file (#387)
  • Loading branch information
hycdong authored and neverchanje committed Mar 29, 2020
1 parent c941d5a commit 4cb2cd2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
17 changes: 12 additions & 5 deletions include/dsn/dist/replication/replication_types.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion src/dist/replication/common/replication_types.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/dist/replication/lib/mutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void mutation::add_client_request(task_code code, dsn::message_ex *request)
update.code = code;
update.serialization_type =
(dsn_msg_serialize_format)request->header->context.u.serialize_format;
update.__set_start_time_ns(dsn_now_ns());
request->add_ref(); // released on dctor

void *ptr;
Expand Down
1 change: 1 addition & 0 deletions src/dist/replication/replication.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct mutation_update
//the serialization type of data, this need to store in log and replicate to secondaries by primary
2:i32 serialization_type;
3:dsn.blob data;
4:optional i64 start_time_ns;
}

struct mutation_data
Expand Down

0 comments on commit 4cb2cd2

Please sign in to comment.