aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go
diff options
context:
space:
mode:
authorale <ale@incal.net>2019-09-26 12:10:23 +0100
committerale <ale@incal.net>2019-09-26 12:10:23 +0100
commit97221e85d5ab47a1443a7aea0b0461bac5230854 (patch)
tree7a8fe4093e580f1db64822164fb406b866d2b402 /vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go
parent64eb5fb23f64f209e3d813e017097044a111151f (diff)
downloadcrawl-97221e85d5ab47a1443a7aea0b0461bac5230854.tar.gz
crawl-97221e85d5ab47a1443a7aea0b0461bac5230854.zip
Update vendored dependencies
Diffstat (limited to 'vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go')
-rw-r--r--vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go b/vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go
index 2c69d2e..c2ad70c 100644
--- a/vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go
+++ b/vendor/github.com/syndtr/goleveldb/leveldb/db_snapshot.go
@@ -142,6 +142,10 @@ func (snap *Snapshot) Has(key []byte, ro *opt.ReadOptions) (ret bool, err error)
// DB. And a nil Range.Limit is treated as a key after all keys in
// the DB.
//
+// WARNING: Any slice returned by interator (e.g. slice returned by calling
+// Iterator.Key() or Iterator.Value() methods), its content should not be
+// modified unless noted otherwise.
+//
// The iterator must be released after use, by calling Release method.
// Releasing the snapshot doesn't mean releasing the iterator too, the
// iterator would be still valid until released.