kohlmu-pivotal commented on a change in pull request #7348:
URL: https://github.com/apache/geode/pull/7348#discussion_r817280206



##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/net/BufferPool.java
##########
@@ -261,37 +261,37 @@ ByteBuffer expandWriteBufferIfNeeded(BufferType type, 
ByteBuffer existing,
   }
 
   ByteBuffer acquireDirectBuffer(BufferPool.BufferType type, int capacity) {
-    switch (type) {
-      case UNTRACKED:
+    switch (type.toString()) {
+      case "UNTRACKED":
         return ByteBuffer.allocate(capacity);
-      case TRACKED_SENDER:
+      case "TRACKED_SENDER":
         return acquireDirectSenderBuffer(capacity);
-      case TRACKED_RECEIVER:
+      case "TRACKED_RECEIVER":
         return acquireDirectReceiveBuffer(capacity);
     }
     throw new IllegalArgumentException("Unexpected buffer type " + type);
   }
 
   ByteBuffer acquireNonDirectBuffer(BufferPool.BufferType type, int capacity) {
-    switch (type) {
-      case UNTRACKED:
+    switch (type.toString()) {

Review comment:
       These changes left over from a previous bug fixing attempt. Reverted code




-- 
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: notifications-unsubscr...@geode.apache.org

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


Reply via email to