mirror of
https://github.com/google/cdc-file-transfer.git
synced 2026-09-13 01:10:44 +03:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user