Developing lightweight computation at the DSG edge

Commit 65de8d6c authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[goclidote] Add tx.Commit() to AntidoteAddItemToSetInMapInBucket

It was missing, so connections were left dangling.
Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <>
parent e7cca656
......@@ -87,6 +87,9 @@ func AntidoteAddItemToSetInMapInBucket(bucketName string, mapName string, setNam
setVal, err := mapVal.Set(setKey)
errCheck(err, ERROR, fmt.Sprintf("[AntidoteAddItemToSetInMapInBucket]: Unable to read set %s in bucket %s", setName, bucketName))
err = tx.Commit()
errCheck(err, ERROR, "[AntidoteAddItemToSetInMapInBucket]: Unable to commit transaction")
// Return true if the value belongs now to the set (either it has been added now, or was there already)
for _, v := range setVal {
if string(v) == itemValue {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment