You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2013/11/29 10:25:36 UTC

[jira] [Resolved] (MAVIBOT-10) Add a Replace method

     [ https://issues.apache.org/jira/browse/MAVIBOT-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved MAVIBOT-10.
--------------------------------------

    Resolution: Invalid

In fact, the insert() method already handle this case.

> Add a Replace method
> --------------------
>
>                 Key: MAVIBOT-10
>                 URL: https://issues.apache.org/jira/browse/MAVIBOT-10
>             Project: Mavibot
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M1
>            Reporter: Emmanuel Lecharny
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.0.0-M3
>
>
> Currently, if we want to replace an old value by a new one, we have no other way than dropping the old value, and to add the new value. This results into 2 operations, when the BTree should be updated only once.
> Adding an replace(K, oldVal, newVal) would be very good.



--
This message was sent by Atlassian JIRA
(v6.1#6144)