[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: MongoDB findAndModify() with aggregation
From: Alan DeKok <aland () deployingradius ! com>
Date: 2020-03-21 13:35:07
Message-ID: 94FCED72-1303-4E16-94C5-2ABAB5BA5C63 () deployingradius ! com
[Download RAW message or body]
On Mar 21, 2020, at 6:23 AM, Geaaru <geaaru@gmail.com> wrote:
> I think that the fix must be a little more complex.
Possibly. It's also possible to just document this limitation as "don't do that".
> The best solution probably is this:
> - try to identify the target MongoDB Server version on first connection
> and store this inside mongo db instance struct
> - to change the code in the way that if mongodb is >= 4.2 update is
> handled as an array instead of a single document.
>
> Obviously, this introduces complexity in the code.
Or just documentation is "don't do that" :)
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic