diff options
author | Patrick Mezard <patrick@mezard.eu> | 2015-10-19 10:42:28 +0200 |
---|---|---|
committer | Patrick Mezard <patrick@mezard.eu> | 2015-10-19 10:42:28 +0200 |
commit | f8d7ef20e64d35d195c53d3df2242abef3588fbe (patch) | |
tree | 69e0afd193440ade73f2896ea5933335e845bee5 /bucket.go | |
parent | Merge pull request #437 from shaggytwodope/master (diff) | |
download | dedo-f8d7ef20e64d35d195c53d3df2242abef3588fbe.tar.gz dedo-f8d7ef20e64d35d195c53d3df2242abef3588fbe.tar.xz |
bucket: document Put() value must remain valid for the transaction
Issue #324
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -270,6 +270,7 @@ func (b *Bucket) Get(key []byte) []byte { // Put sets the value for a key in the bucket. // If the key exist then its previous value will be overwritten. +// Supplied value must remain valid for the life of the transaction. // Returns an error if the bucket was created from a read-only transaction, if the key is blank, if the key is too large, or if the value is too large. func (b *Bucket) Put(key []byte, value []byte) error { if b.tx.db == nil { |