[cdc_rsync] [cdc_rsync_server] Add build ID

Build id is an optional unique identifier specified during cdc_rsync build via CDC_BUILD_VERSION definition.
If build id specified on both client and server components it will be used to check the version of server component instead of file size + modified time.
This commit is contained in:
Levon Ter-Grigoryan
2023-01-25 17:17:31 +01:00
parent 1200b34316
commit 36f4dc9251
10 changed files with 100 additions and 20 deletions
+3 -1
View File
@@ -28,11 +28,13 @@ namespace cdc_ft {
// The components are considered fresh if both the timestamp and the file size
// match.
struct GameletComponent {
std::string build_version;
std::string filename;
uint64_t size;
int64_t modified_time;
GameletComponent(std::string filename, uint64_t size, time_t modified_time);
GameletComponent(std::string build_version, std::string filename,
uint64_t size, time_t modified_time);
~GameletComponent();
bool operator==(const GameletComponent& other) const;