You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2024/09/09 22:12:16 UTC
(trafficserver) branch master updated: Cleanup: Redundant definition of cache_bytes_used (#11757)
This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 9330cd3101 Cleanup: Redundant definition of cache_bytes_used (#11757)
9330cd3101 is described below
commit 9330cd3101ff1f5cf5cf1f69d4f3fcad69cc6fd1
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Tue Sep 10 07:12:11 2024 +0900
Cleanup: Redundant definition of cache_bytes_used (#11757)
---
src/iocore/cache/Cache.cc | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/iocore/cache/Cache.cc b/src/iocore/cache/Cache.cc
index 169278ee08..a53afbf849 100644
--- a/src/iocore/cache/Cache.cc
+++ b/src/iocore/cache/Cache.cc
@@ -122,21 +122,6 @@ force_link_CacheTestCaller()
}
#endif
-// ToDo: This gets called as part of librecords collection continuation, probably change this later.
-inline int64_t
-cache_bytes_used(int index)
-{
- if (!DISK_BAD(gstripes[index]->disk)) {
- if (!gstripes[index]->header->cycle) {
- return gstripes[index]->header->write_pos - gstripes[index]->start;
- } else {
- return gstripes[index]->len - gstripes[index]->dirlen() - EVACUATION_SIZE;
- }
- }
-
- return 0;
-}
-
static int
validate_rww(int new_value)
{