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:45 UTC
[trafficserver] 15/23: Step 15: Removes getBaseName() and various
unused members
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 cfa1dd95d88313ec64edc304d854d75aca3939e1
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Fri May 24 16:58:21 2019 -0600
Step 15: Removes getBaseName() and various unused members
---
mgmt/Rollback.cc | 3 +--
mgmt/Rollback.h | 11 +----------
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/mgmt/Rollback.cc b/mgmt/Rollback.cc
index b89f17a..478d4de 100644
--- a/mgmt/Rollback.cc
+++ b/mgmt/Rollback.cc
@@ -58,8 +58,7 @@ Rollback::Rollback(const char *fileName_, const char *configName_, bool root_acc
root_access_needed(root_access_needed_),
parentRollback(parentRollback_),
currentVersion(0),
- fileLastModified(0),
- numVersions(0)
+ fileLastModified(0)
{
version_t highestSeen; // the highest backup version
ExpandingArray existVer(25, true); // Existing versions
diff --git a/mgmt/Rollback.h b/mgmt/Rollback.h
index e112047..3200824 100644
--- a/mgmt/Rollback.h
+++ b/mgmt/Rollback.h
@@ -31,14 +31,6 @@ class TextBuffer;
typedef int version_t;
-enum RollBackCodes {
- OK_ROLLBACK,
- FILE_NOT_FOUND_ROLLBACK,
- VERSION_NOT_CURRENT_ROLLBACK,
- SYS_CALL_ERROR_ROLLBACK,
- INVALID_VERSION_ROLLBACK
-};
-
class ExpandingArray;
// Stores info about a backup version
@@ -88,6 +80,7 @@ public:
{
ink_mutex_acquire(&fileAccessLock);
};
+
void
releaseLock()
{
@@ -153,6 +146,4 @@ private:
Rollback *parentRollback;
version_t currentVersion;
time_t fileLastModified;
- int numVersions;
- Queue<versionInfo> versionQ; // stores the backup version info
};