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

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong committed Feb 18, 2020
1 parent aa4740b commit 3d09954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/dsn/dist/replication/replication_app_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class replication_app_base : public replica_base
// query app envs.
virtual void query_app_envs(/*out*/ std::map<std::string, std::string> &envs) = 0;

virtual void set_partition_version(uint32_t partition_version) {}
virtual void set_partition_version(int32_t partition_version) {}

public:
//
Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class replica : public serverlet<replica>, public ref_counter, public replica_ba
ballot _child_init_ballot{0};
// in normal case _partition_version = partition_count-1
// when parent register child, _partition_version = -1, will reject client read write request
std::atomic<int> _partition_version;
std::atomic<int32_t> _partition_version;

// perf counters
perf_counter_wrapper _counter_private_log_size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class mock_replication_app_base : public replication_app_base
void query_app_envs(std::map<std::string, std::string> &out) override { out = _envs; }
decree last_durable_decree() const override { return 0; }

void set_partition_version(uint32_t partition_version) override {}
void set_partition_version(int32_t partition_version) override {}

private:
std::map<std::string, std::string> _envs;
Expand Down

0 comments on commit 3d09954

Please sign in to comment.