Skip to content

Commit

Permalink
patches: add mgo PR juju#360
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Dec 6, 2016
1 parent 638df1c commit 3c795f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/mgo_txn_flusher_pr360.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/gopkg.in/mgo.v2/txn/flusher.go b/gopkg.in/mgo.v2/txn/flusher.go
index f640a43..03b56ba 100644
--- a/gopkg.in/mgo.v2/txn/flusher.go
+++ b/gopkg.in/mgo.v2/txn/flusher.go
@@ -691,7 +691,7 @@ func (f *flusher) checkpoint(t *transaction, revnos []int64) error {
f.debugf("Ready to apply %s. Saving revnos %v: LOST RACE", t, debugRevnos)
return f.reload(t)
}
- return nil
+ return err
}

func (f *flusher) apply(t *transaction, pull map[bson.ObjectId]*transaction) error {

0 comments on commit 3c795f7

Please sign in to comment.