session.copy() and write settings

20 views
Skip to first unread message

Zardosht Kasheff

unread,
Apr 9, 2014, 6:03:46 PM4/9/14
to mgo-...@googlegroups.com
Hello,

If I do the following:
    session.SetSafe(&mgo.Safe{})
    session.Copy()

Are the safe settings I did in the first line copied over as well, or do I need to run SetSafe() on the copied session? http://godoc.org/labix.org/v2/mgo#Session.Copy says that auth settings are copied over, but mentions nothing about SetSafe.

Thanks
-Zardosht
Reply all
Reply to author
Forward
0 new messages