susumu.yata
null+****@clear*****
Mon May 11 09:03:57 JST 2015
susumu.yata 2015-05-11 09:03:57 +0900 (Mon, 11 May 2015) New Revision: 298a26e69003f98498cdd355f4fee5e21a1aabcb https://github.com/groonga/grnxx/commit/298a26e69003f98498cdd355f4fee5e21a1aabcb Message: Gnx: fix a bug that DB.Close() does not close grn_obj for DB. Modified files: go3/gnx/grn.go Modified: go3/gnx/grn.go (+5 -0) =================================================================== --- go3/gnx/grn.go 2015-05-08 17:37:00 +0900 (9b93901) +++ go3/gnx/grn.go 2015-05-11 09:03:57 +0900 (06024c7) @@ -135,6 +135,11 @@ func OpenGrnDB(path string) (*GrnDB, error) { // Close() closes a handle. func (db *GrnDB) Close() error { + rc := C.grn_obj_close(db.ctx, db.obj) + if rc != C.GRN_SUCCESS { + closeGrnCtx(db.ctx) + return fmt.Errorf("grn_obj_close() failed: rc = %d", rc) + } return closeGrnCtx(db.ctx) } -------------- next part -------------- HTML����������������������������...Download