ocket8888 commented on a change in pull request #5475:
URL: https://github.com/apache/trafficcontrol/pull/5475#discussion_r569803734
##########
File path: traffic_ops/traffic_ops_golang/crconfig/crconfig.go
##########
@@ -30,7 +30,7 @@ import (
)
// Make creates and returns the CRConfig from the database.
-func Make(tx *sql.Tx, cdn, user, toHost, reqPath, toVersion string,
useClientReqHost bool, emulateOldPath bool) (*tc.CRConfig, error) {
+func Make(tx *sql.Tx, cdn, user, toHost, toVersion string, useClientReqHost
bool, emulateOldPath bool) (*tc.CRConfig, error) {
Review comment:
Either way we'd need `CRConfig.Stats.TMPath`; `CRConfigEmulateOldPath`
only determined whether or not to insert a legacy path into that field. It
would still be populated otherwise, just with a different path. Except in API 4
the property is only populated if you specifically request emulating legacy
behavior.
I believe the "major version" that's talking about is the major ATC version,
since historically snapshots have been un-versioned.
When I made the change it looked like the next ATC version was going to be
5.1, but currently it seems like this won't make it into that and would go into
ATC 6 instead, so I _think_ we can get rid of that, but just in case this gets
cherry-picked back for whatever reason I think I'd prefer to do that
separately. If that's acceptable I'll open an issue about it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]