// ReleaseSnapshot removes the snapshot from the database's list of snapshots, // and deallocates it. func (db *DB) ReleaseSnapshot(snap *Snapshot) { C.leveldb_release_snapshot(db.Ldb, snap.snap) }
func (s *Snapshot) Close() { C.leveldb_release_snapshot(s.db.db, s.snap) s.iteratorOpts.Close() s.readOpts.Close() }