zwoop commented on code in PR #10662:
URL: https://github.com/apache/trafficserver/pull/10662#discussion_r1507938079


##########
src/iocore/cache/RamCacheLRU.cc:
##########
@@ -84,13 +85,14 @@ RamCacheLRU::size() const
 
 ClassAllocator<RamCacheLRUEntry> ramCacheLRUEntryAllocator("RamCacheLRUEntry");
 
-static const int bucket_sizes[] = {127,     251,      509,      1021,     
2039,      4093,      8191,     16381,
-                                   32749,   65521,    131071,   262139,   
524287,    1048573,   2097143,  4194301,
-                                   8388593, 16777213, 33554393, 67108859, 
134217689, 268435399, 536870909};
+static const int bucket_sizes[] = {8191,    16381,   32749,    65521,    
131071,   262139,    524287,    1048573,   2097143,
+                                   4194301, 8388593, 16777213, 33554393, 
67108859, 134217689, 268435399, 536870909, 1073741827};
 
 void
 RamCacheLRU::resize_hashtable()
 {
+  ink_release_assert(ibuckets < static_cast<int>(sizeof(bucket_sizes)));

Review Comment:
   Fixed



-- 
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.

To unsubscribe, e-mail: github-unsubscr...@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to