... | @@ -122,7 +122,7 @@ Snapshots provide consistent read-only views over the entire state of the key-va |
... | @@ -122,7 +122,7 @@ Snapshots provide consistent read-only views over the entire state of the key-va |
|
ReadOptions = [{snapshot, Snapshot}],
|
|
ReadOptions = [{snapshot, Snapshot}],
|
|
{ok, Itr} = rocksdb:iterator(DB, ReadOptions),
|
|
{ok, Itr} = rocksdb:iterator(DB, ReadOptions),
|
|
... read using iter to view the state when the snapshot was created ...
|
|
... read using iter to view the state when the snapshot was created ...
|
|
rocksdb:iterator_close(Itr)
|
|
rocksdb:iterator_close(Itr),
|
|
rocksdb:release_snapshot(Snapshot)
|
|
rocksdb:release_snapshot(Snapshot)
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |