You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2011/09/14 13:20:37 UTC

svn commit: r1170536 - /incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java

Author: marrs
Date: Wed Sep 14 11:20:37 2011
New Revision: 1170536

URL: http://svn.apache.org/viewvc?rev=1170536&view=rev
Log:
ACE-169 changed the target log store to no longer store target IDs

Modified:
    incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java

Modified: incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java?rev=1170536&r1=1170535&r2=1170536&view=diff
==============================================================================
--- incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java (original)
+++ incubator/ace/trunk/ace-gateway-log-store/src/main/java/org/apache/ace/gateway/log/store/impl/LogStoreImpl.java Wed Sep 14 11:20:37 2011
@@ -251,12 +251,9 @@ public class LogStoreImpl implements Log
      * @throws java.io.IOException
      *             in case of any IO error.
      */
-    public synchronized LogEvent put(int type, Dictionary props)
-            throws IOException {
+    public synchronized LogEvent put(int type, Dictionary props) throws IOException {
         try {
-            LogEvent result = new LogEvent(m_identification.getID(),
-                    m_store.getId(), getNextID(), System.currentTimeMillis(),
-                    type, props);
+            LogEvent result = new LogEvent(null, m_store.getId(), getNextID(), System.currentTimeMillis(), type, props);
             m_store.append(result.getID(), result.toRepresentation().getBytes());
             return result;
         }