mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
18.34.2014 251339b8e0d0dcc3bcbe20aa7bdb51d1a78942e7
OPENDJ-1602 (CR-5566) New pluggable storage based backend

Add a reminder to revisit the IndexBuffer flushing algorithm because it is quite surprising.
1 files modified
5 ■■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/IndexBuffer.java 5 ●●●●● patch | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/IndexBuffer.java
@@ -235,6 +235,11 @@
   */
  public void flush(WriteableStorage txn) throws StorageRuntimeException, DirectoryException
  {
    /*
     * FIXME: this seems like a surprising way to update the indexes. Why not
     * store the buffered changes in a TreeMap in order to have a predictable
     * iteration order?
     */
    for (AttributeIndex attributeIndex : entryContainer.getAttributeIndexes())
    {
      for (Index index : attributeIndex.getAllIndexes())