Closed GoogleCodeExporter closed 9 years ago
I am not sure I understand this one. leveldb is a LSM based database. It writes
new kvs to a new location and garbage collects overwritten ones. If you want an
api that implements read-modify-writes can you implement it in your own
application?
are you concerned about the atomicity of the read-modify-write operation?
Original comment by dhr...@gmail.com
on 26 May 2012 at 5:12
This feature request is to add 2 new functions PutNew/3 and WriteNew/2 that
would work exactly like Put/3 and Write/2 respectively, with the exception that
instead of overwriting values with the same key or adding more values with keys
already existing in the database, these 2 functions simply return a non-OK
status. Nothing would be inserted if not all key or keys are absent from the
database. The entire operation would be guaranteed to be atomic and isolated.
Original comment by josephwn...@gmail.com
on 27 May 2012 at 1:50
Sorry, but it is currently out of scope of this library. Equivalent
functionality can be implemented just as efficiently outside the library.
Original comment by san...@google.com
on 8 Oct 2012 at 9:25
Original issue reported on code.google.com by
josephwn...@gmail.com
on 27 Sep 2011 at 2:32