You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2019/06/15 16:22:40 UTC
[trafficserver] 10/23: Step 10: Removes versionTimeStamp() and
versionTimeStamp_ml()
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit d1189c2e473dc83628745fbd0f4354557674d154
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Fri May 24 16:48:35 2019 -0600
Step 10: Removes versionTimeStamp() and versionTimeStamp_ml()
---
mgmt/Rollback.cc | 24 ------------------------
mgmt/Rollback.h | 6 ------
2 files changed, 30 deletions(-)
diff --git a/mgmt/Rollback.cc b/mgmt/Rollback.cc
index 06a0e8c..e56fa32 100644
--- a/mgmt/Rollback.cc
+++ b/mgmt/Rollback.cc
@@ -257,30 +257,6 @@ Rollback::extractVersionInfo(ExpandingArray *listNames, const char *testFileName
return version;
}
-time_t
-Rollback::versionTimeStamp(version_t version)
-{
- time_t t;
-
- ink_mutex_acquire(&fileAccessLock);
- t = versionTimeStamp_ml(version);
- ink_mutex_release(&fileAccessLock);
-
- return t;
-}
-
-time_t
-Rollback::versionTimeStamp_ml(version_t version)
-{
- struct stat buf;
-
- if (this->statFile(version, &buf) < 0) {
- return -1;
- } else {
- return buf.st_mtime;
- }
-}
-
int
Rollback::statVersion(version_t version, struct stat *buf)
{
diff --git a/mgmt/Rollback.h b/mgmt/Rollback.h
index 335a02c..27b1bbc 100644
--- a/mgmt/Rollback.h
+++ b/mgmt/Rollback.h
@@ -76,10 +76,6 @@ struct versionInfo {
// time. Returns true if the file has been changed manually or false
// if it hasn't
//
-// versionTimeStamp(version_t) - returns the modification time (mtime)
-// of the version passed in. If the version is not foundl, -1 is
-// returned
-//
// private functions
//
// CURRENT_VERSION means the active version. The active version does not
@@ -117,12 +113,10 @@ public:
{
ink_mutex_release(&fileAccessLock);
};
- time_t versionTimeStamp_ml(version_t version);
version_t extractVersionInfo(ExpandingArray *listNames, const char *testFileName);
// Automatically take out lock
bool checkForUserUpdate();
- time_t versionTimeStamp(version_t version);
int statVersion(version_t, struct stat *buf);
bool setLastModifiedTime();