0 Replies Latest reply: Feb 24, 2009 2:27 PM by archie172 RSS

    Small fix for DatabaseEntry.toString()

    archie172
      Two fixes that should be self-explanatory:
      diff -ur bdb/com/sleepycat/je/DatabaseEntry.java src/java/com/sleepycat/je/DatabaseEntry.java
      --- bdb/com/sleepycat/je/DatabaseEntry.java 2008-06-10 10:52:08.000000000 -0500
      +++ src/java/com/sleepycat/je/DatabaseEntry.java    2009-02-24 14:25:42.073159061 -0600
      @@ -120,7 +120,6 @@
          StringBuffer sb = new StringBuffer("<DatabaseEntry");
          sb.append(" dlen=\"").append(dlen);
          sb.append("\" doff=\"").append(doff);
      -   sb.append("\" doff=\"").append(doff);
          sb.append("\" offset=\"").append(offset);
          sb.append("\" size=\"").append(size);
          sb.append("\" data=\"").append(dumpData());
      @@ -128,6 +127,8 @@
              sb.append(" ... ").append((size - MAX_DUMP_BYTES) +
                            " bytes not shown ");
          }
      +   if (partial)
      +       sb.append("\" partial=\"true");
          sb.append("\"/>");
          return sb.toString();
           }