# # # patch "constants.cc" # from [518c6c9fc84e40bc47324d16501aa465f3985070] # to [c7bc2142cf0e9861c9fd744f458da6e8c7a0323e] # # patch "constants.hh" # from [ccc8b70979ed263300c8ef5bf423ecea106f9bc1] # to [528788cf84a56e076de55706b0fb989f570a6e9f] # ============================================================ --- constants.cc 518c6c9fc84e40bc47324d16501aa465f3985070 +++ constants.cc c7bc2142cf0e9861c9fd744f458da6e8c7a0323e @@ -119,10 +119,6 @@ illegal_path_bytes_arr ; - // how many revisions back to verify the sanity of revisions before allowing - // them into the database - int const verify_depth = 4; - // merkle tree / netcmd / netsync related stuff size_t const merkle_fanout_bits = 4; @@ -147,8 +143,6 @@ u8 const netcmd_current_protocol_version = 6; - // allow payloads up to 256 megs (this sets the in-practice maximum size of - // a compressed file/manifest). size_t const netcmd_minimum_bytes_to_bother_with_gzip = 0xfff; size_t const netsync_session_key_length_in_bytes = 20; // 160 bits ============================================================ --- constants.hh ccc8b70979ed263300c8ef5bf423ecea106f9bc1 +++ constants.hh 528788cf84a56e076de55706b0fb989f570a6e9f @@ -85,10 +85,6 @@ // all the ASCII characters (bytes) which are illegal in a (file|local)_path extern char const * const illegal_path_bytes; - // how many revisions back to verify the sanity of revisions before allowing - // them into the database - extern int const verify_depth; - // remaining constants are related to netsync protocol // number of bytes in the hash used in netsync @@ -123,6 +119,7 @@ // largest command *payload* allowed in a netcmd + // in practice, this sets the size of the largest compressed file static size_t const netcmd_payload_limit = 2 << 27; // maximum size of any netcmd on the wire, including payload @@ -151,9 +148,6 @@ // netsync session key default initializer extern std::string const & netsync_key_initializer; - - // maximum path depth to allow (as a recursion limit) - static size_t const max_path_depth = 300; } #endif // __CONSTANTS_HH__