[Groonga-commit] groonga/grnxx at cbed551 [master] Gnx: call grn_ctx_recv() to skip "false" when grn_ctx_send() failed.

Back to archive index

susumu.yata null+****@clear*****
Fri Mar 20 21:45:00 JST 2015


susumu.yata	2015-03-20 21:45:00 +0900 (Fri, 20 Mar 2015)

  New Revision: cbed55139908180426ad24cb16bc4b2b0ba11a92
  https://github.com/groonga/grnxx/commit/cbed55139908180426ad24cb16bc4b2b0ba11a92

  Message:
    Gnx: call grn_ctx_recv() to skip "false" when grn_ctx_send() failed.

  Modified files:
    go/gnx/groonga/groonga.go

  Modified: go/gnx/groonga/groonga.go (+1 -0)
===================================================================
--- go/gnx/groonga/groonga.go    2015-03-20 21:42:11 +0900 (ffe3abb)
+++ go/gnx/groonga/groonga.go    2015-03-20 21:45:00 +0900 (4f9b4d8)
@@ -159,6 +159,7 @@ func (db *DB) Recv() ([]byte, error) {
 
 func (db *DB) Query(command string) ([]byte, error) {
 	if err := db.Send(command); err != nil {
+		db.Recv()
 		return nil, err
 	}
 	return db.Recv()
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index