Prechádzať zdrojové kódy

HADOOP-1025. Remove some obsolete code in ipc.Server.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@510254 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 rokov pred
rodič
commit
b93aff31f6
2 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 0
      CHANGES.txt
  2. 0 5
      src/java/org/apache/hadoop/ipc/Server.java

+ 2 - 0
CHANGES.txt

@@ -93,6 +93,8 @@ Trunk (unreleased changes)
     The EC2 scripts now support launch of public AMIs.
     (tomwhite)
     
+28. HADOOP-1025. Remove some obsolete code in ipc.Server.  (cutting)
+
 
 Release 0.11.2 - 2007-02-16
 

+ 0 - 5
src/java/org/apache/hadoop/ipc/Server.java

@@ -111,7 +111,6 @@ public abstract class Server {
 
   private boolean running = true;                 // true while server runs
   private LinkedList callQueue = new LinkedList(); // queued calls
-  private Object callDequeued = new Object();     // used by wait/notify
 
   private List connectionList = 
        Collections.synchronizedList(new LinkedList()); //maintain a list
@@ -513,10 +512,6 @@ public abstract class Server {
             call = (Call)callQueue.removeFirst(); // pop the queue
           }
 
-          synchronized (callDequeued) {           // tell others we've dequeued
-            callDequeued.notify();
-          }
-
           // throw the message away if it is too old
           if (System.currentTimeMillis() - call.receivedTime > 
               maxCallStartAge) {